mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Use get_by_id on display rules model loads to ensure they get cached
This commit is contained in:
parent
630c5c3395
commit
f24af09f00
@ -455,7 +455,7 @@ class UserDefinedForm_Controller extends Page_Controller
|
||||
foreach ($field->EffectiveDisplayRules() as $rule) {
|
||||
|
||||
// Get the field which is effected
|
||||
$formFieldWatch = EditableFormField::get()->byId($rule->ConditionFieldID);
|
||||
$formFieldWatch = DataObject::get_by_id('EditableFormField', $rule->ConditionFieldID);
|
||||
|
||||
// Skip deleted fields
|
||||
if (!$formFieldWatch) {
|
||||
|
Loading…
Reference in New Issue
Block a user