File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,10 @@ protected function buildJsonFormsForm(
111
111
return [];
112
112
}
113
113
114
+ if (property_exists ($ jsonSchema , '$limitValidation ' )) {
115
+ $ formState ->set ('$limitValidationUsed ' , TRUE );
116
+ }
117
+
114
118
$ definition = DefinitionFactory::createDefinition ($ uiSchema , $ jsonSchema );
115
119
$ form = $ this ->formArrayFactory ->createFormArray ($ definition , $ formState );
116
120
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ public function __construct(ConcreteFormArrayFactoryInterface ...$formArrayFacto
40
40
}
41
41
42
42
public function createFormArray (DefinitionInterface $ definition , FormStateInterface $ formState ): array {
43
- if (NULL !== $ definition ->getKeywordValue ('$limitValidation ' )) {
43
+ if ($ definition instanceof ControlDefinition
44
+ && NULL !== $ definition ->getObjectKeywordValue ('$limitValidation ' )
45
+ ) {
44
46
$ formState ->set ('$limitValidationUsed ' , TRUE );
45
47
}
46
48
You can’t perform that action at this time.
0 commit comments