You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If two (or more) forms rendered on one page have a field with the same name, display-logic criteria is added to both - even if one doesn’t have any logic applied.
The title fields for both forms will get data-display-logic-eval etc added. This is because extensions in SilverStripe are singletons by default, so the $this->displayLogicCriteria array will be stored for all forms:
If two (or more) forms rendered on one page have a field with the same name, display-logic criteria is added to both - even if one doesn’t have any logic applied.
The title fields for both forms will get
data-display-logic-eval
etc added. This is because extensions in SilverStripe are singletons by default, so the$this->displayLogicCriteria
array will be stored for all forms:silverstripe-display-logic/src/Extensions/DisplayLogic.php
Lines 94 to 95 in c5f807d
Fix is to add the following YAML config:
The text was updated successfully, but these errors were encountered: