mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-05 17:14:20 +01:00
Button: Add default name attribute for cancel button
This commit is contained in:
@@ -279,6 +279,8 @@ class ButtonUIBlockFactory extends AbstractUIBlockFactory
|
||||
?string $sId = null
|
||||
): Button {
|
||||
$sLabel = $sLabel ?? Dict::S('UI:Button:Cancel');
|
||||
$sName = $sName ?? 'cancel';
|
||||
|
||||
return static::MakeForAction($sLabel, Button::ENUM_COLOR_NEUTRAL, Button::ENUM_ACTION_TYPE_ALTERNATIVE, $sValue, $sName,
|
||||
$bIsSubmit, $sId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user