File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -859,7 +859,7 @@ protected function getEntityRestriction() {
859
859
switch ($ restrictionPolicy ) {
860
860
case self ::ENTITY_RESTRICT_FORM :
861
861
$ form = PluginFormcreatorForm::getByItem ($ this ->getQuestion ());
862
- $ formEntities = [$ form ->fields ['entities_id ' ]];
862
+ $ formEntities = [$ form ->fields ['entities_id ' ] => $ form -> fields [ ' entities_id ' ] ];
863
863
if ($ form ->fields ['is_recursive ' ]) {
864
864
$ formEntities = $ formEntities + (new DBUtils ())->getSonsof (Entity::getTable (), $ form ->fields ['entities_id ' ]);
865
865
}
@@ -868,7 +868,7 @@ protected function getEntityRestriction() {
868
868
869
869
case self ::ENTITY_RESTRICT_BOTH :
870
870
$ form = PluginFormcreatorForm::getByItem ($ this ->getQuestion ());
871
- $ formEntities = [$ form ->fields ['entities_id ' ]];
871
+ $ formEntities = [$ form ->fields ['entities_id ' ] => $ form -> fields [ ' entities_id ' ] ];
872
872
if ($ form ->fields ['is_recursive ' ]) {
873
873
$ formEntities = $ formEntities + (new DBUtils ())->getSonsof (Entity::getTable (), $ form ->fields ['entities_id ' ]);
874
874
}
You can’t perform that action at this time.
0 commit comments