🥅 N°1192 Portal: Increase navigation rules checks robustness

This commit is contained in:
Stephen Abello
2020-01-08 15:27:32 +01:00
parent ed26f1cecc
commit 8d45e48ce1

View File

@@ -569,7 +569,7 @@ class NavigationRuleHelper
);
// Get form's navigation rules
$aFormNavRules = (isset($aFormProperties['properties'])) ? $aFormProperties['properties']['navigation_rules'] : array('submit' => null, 'cancel' => null);
$aFormNavRules = (isset($aFormProperties['properties']['navigation_rules'])) ? $aFormProperties['properties']['navigation_rules'] : array('submit' => null, 'cancel' => null);
// Check from which origin the rule will be called
$sRuleCallOrigin = ($bIsCurrentFormInModal) ? 'modal' : 'default';