Skip to content

Commit

Permalink
Update html.form.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
thibdrev authored Mar 5, 2024
1 parent 41fc472 commit c6c55b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/html.form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public function editfieldval($text, $htmlname, $value, $object, $perm, $typeofda
} elseif (preg_match('/^url/', $typeofdata)) {
$ret .= dol_print_url($value, '_blank', 32, 1);
} elseif (preg_match('/^(amount|numeric)/', $typeofdata)) {
$ret .= ($value != '' ? price($value, '', $langs, 0, -1, -1, $conf->currency) : '');
$ret .= ($value != '' ? price($value, 0, $langs, 0, -1, -1, $conf->currency) : '');
} elseif (preg_match('/^checkbox/', $typeofdata)) {
$tmp = explode(':', $typeofdata);
$ret .= '<input type="checkbox" disabled id="' . $htmlname . '" name="' . $htmlname . '" value="' . $value . '"' . ($value ? ' checked' : '') . ($tmp[1] ? $tmp[1] : '') . '/>';
Expand Down

0 comments on commit c6c55b0

Please sign in to comment.