N°2847 Fix default action type value for Button constructor

This commit is contained in:
Stephen Abello
2020-08-14 17:02:35 +02:00
parent 3ffe3dd4bd
commit ac91c4d970

View File

@@ -73,7 +73,7 @@ class Button extends UIBlock
* @param string $sJsCode
* @param string $sOnClickJsCode
*/
public function __construct($sId, $sLabel, $sName, $sValue, $sType = '', $sTooltip = '', $sIconClass = '', $sActionType = 'primary', $sColor = 'secondary', $sJsCode = '', $sOnClickJsCode = '')
public function __construct($sId, $sLabel, $sName, $sValue, $sType = '', $sTooltip = '', $sIconClass = '', $sActionType = 'regular', $sColor = 'secondary', $sJsCode = '', $sOnClickJsCode = '')
{
$this->sLabel = $sLabel;
$this->sName = $sName;