Skip to content

Commit

Permalink
#340 fix submit button
Browse files Browse the repository at this point in the history
  • Loading branch information
digedag committed Nov 21, 2023
1 parent 9a8c30f commit f3f92cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/Backend/Form/ToolBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,14 +712,16 @@ public function createSubmit($name, $value, $confirmMsg = '', $options = [])

$attributesString = T3General::implodeAttributes($attributes, true);

// Der Name des Submit-Buttons liegt nicht mehr im POST. Deshalb ein extra hidden field.
$hidden = sprintf('<input type="hidden" name="%s" value="1" />', $name);
if ($icon) {
$btn = '<button type="submit" '.$attributesString.'>'.
$icon.$value.'</button>';
} else {
$btn = '<input type="submit" '.$attributesString.'/>';
}

return $btn;
return $btn.$hidden;
}

/**
Expand Down

0 comments on commit f3f92cd

Please sign in to comment.