Portal: Fixed regression on always_show_submit form option

SVN:trunk[4730]
This commit is contained in:
Guillaume Lajarige
2017-05-10 15:48:57 +00:00
parent 02c79fd0a2
commit 623fa8ec63
2 changed files with 2 additions and 1 deletions

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)
if($aFormProperties['properties']['always_show_submit'] === false && !empty($aFormData['buttons']['transitions']))
{
unset($aFormData['buttons']['submit']);
}

View File

@@ -863,6 +863,7 @@ class ApplicationHelper
{
case 'always_show_submit':
$aFormProperties['always_show_submit'] = ($oPropertyNode->GetText('false') === 'true') ? true : false;
break;
}
}
}