Portal: Fixed a regression introduced in r4724. User profile page could not be opened anymore.

SVN:trunk[4731]
This commit is contained in:
Guillaume Lajarige
2017-05-11 08:36:22 +00:00
parent 623fa8ec63
commit 6c6ad0a45b

View File

@@ -515,7 +515,7 @@ class ObjectController extends AbstractController
}
// Hiding submit button or changing its label if necessary
if($aFormProperties['properties']['always_show_submit'] === false && !empty($aFormData['buttons']['transitions']))
if(!empty($aFormData['buttons']['transitions']) && isset($aFormProperties['properties']) &&$aFormProperties['properties']['always_show_submit'] === false)
{
unset($aFormData['buttons']['submit']);
}