Jelajahi Sumber

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4731 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 8 tahun lalu
induk
melakukan
9f2c9c1ad7

+ 1 - 1
datamodels/2.x/itop-portal-base/portal/src/controllers/objectcontroller.class.inc.php

@@ -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']);
                 }