FIx #yogosha5774

This commit is contained in:
Laurent Destailleur 2021-04-05 15:21:17 +02:00
parent 01eec2b919
commit 95de241245
2 changed files with 4 additions and 4 deletions

View File

@ -32,9 +32,7 @@ $error = 0;
// Load translation files required by the page
$langs->loadLangs(array("bills", "accountancy"));
$mesg = '';
$id = GETPOST('id', 'int');
$rowid = GETPOST('rowid', 'int');
$cancel = GETPOST('cancel', 'alpha');
$action = GETPOST('action', 'aZ09');
$cat_id = GETPOST('account_category', 'int');

View File

@ -275,8 +275,10 @@ class FormAccounting extends Form
if ($obj->rowid == $selected) {
$out .= ' selected';
}
$out .= '>'.($maxlen ? dol_trunc($obj->type, $maxlen) : $obj->type);
$out .= ' ('.$obj->range_account.')';
$out .= '>';
$titletoshow = dol_string_nohtmltag(($maxlen ? dol_trunc($obj->type, $maxlen) : $obj->type).' ('.$obj->range_account.')');
$out .= dol_escape_htmltag($titletoshow);
$out .= '</option>';
$i++;
}
$out .= '</select>';