diff --git a/classes/StandardControlsRegistry.php b/classes/StandardControlsRegistry.php index ae7c8d98..bc9eac6d 100644 --- a/classes/StandardControlsRegistry.php +++ b/classes/StandardControlsRegistry.php @@ -1172,6 +1172,14 @@ protected function registerRelationWidget() 'type' => 'string', 'ignoreIfEmpty' => true, 'sortOrder' => 84 + ], + 'scope' => [ + 'title' => Lang::get('rainlab.builder::lang.form.property_relation_scope'), + 'description' => Lang::get('rainlab.builder::lang.form.property_relation_scope_description'), + 'group' => Lang::get('rainlab.builder::lang.form.property_group_relation'), + 'type' => 'string', + 'ignoreIfEmpty' => true, + 'sortOrder' => 85 ] ]; diff --git a/lang/en/lang.php b/lang/en/lang.php index 92c566cf..e167c033 100644 --- a/lang/en/lang.php +++ b/lang/en/lang.php @@ -250,6 +250,8 @@ 'property_name_from_description' => 'Relation column name to use for displaying a name.', 'property_relation_select' => 'Select', 'property_relation_select_description' => 'CONCAT multiple columns together for displaying a name', + 'property_relation_scope' => 'Scope', + 'property_relation_scope_description' => 'Specifies a query scope method that\'s defined in the related form model to always apply to the list query.', 'property_description_from' => 'Description column', 'property_description_from_description' => 'Relation column name to use for displaying a description.', 'property_recordfinder_prompt' => 'Prompt',