mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 06:48:50 +02:00
Portal: Fixed regression on always_show_submit form option
SVN:trunk[4730]
This commit is contained in:
@@ -515,7 +515,7 @@ class ObjectController extends AbstractController
|
||||
}
|
||||
|
||||
// Hiding submit button or changing its label if necessary
|
||||
if($aFormProperties['properties']['always_show_submit'] === false)
|
||||
if($aFormProperties['properties']['always_show_submit'] === false && !empty($aFormData['buttons']['transitions']))
|
||||
{
|
||||
unset($aFormData['buttons']['submit']);
|
||||
}
|
||||
|
||||
@@ -863,6 +863,7 @@ class ApplicationHelper
|
||||
{
|
||||
case 'always_show_submit':
|
||||
$aFormProperties['always_show_submit'] = ($oPropertyNode->GetText('false') === 'true') ? true : false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user