2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2024-10-28 14:33:59 +01:00
parent c52d779c1b
commit 838316418f
2 changed files with 15 additions and 2 deletions

View File

@@ -12706,9 +12706,9 @@ function dolGetButtonAction($label, $text = '', $actionType = 'default', $url =
if (empty($reshook)) {
if (dol_textishtml($text)) { // If content already HTML encoded
return '<' . $tag . ' ' . $compiledAttributes . '>' . $text . '</' . $tag . '>';
return '<' . $tag . ' ' . $compiledAttributes . '><span class="textbutton">' . $text . '</span></' . $tag . '>';
} else {
return '<' . $tag . ' ' . $compiledAttributes . '>' . dol_escape_htmltag($text) . '</' . $tag . '>';
return '<' . $tag . ' ' . $compiledAttributes . '><span class="textbutton">' . dol_escape_htmltag($text) . '</span></' . $tag . '>';
}
} else {
return $hookmanager->resPrint;