Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
8c18837095
@ -1613,7 +1613,7 @@ class ExtraFields
|
||||
if (!empty($extrafieldsobjectkey)) {
|
||||
$label = $this->attributes[$extrafieldsobjectkey]['label'][$key];
|
||||
$type = $this->attributes[$extrafieldsobjectkey]['type'][$key];
|
||||
$size = (int) $this->attributes[$extrafieldsobjectkey]['size'][$key];
|
||||
$size = $this->attributes[$extrafieldsobjectkey]['size'][$key]; // Can be '255', '24,8'...
|
||||
$default = $this->attributes[$extrafieldsobjectkey]['default'][$key];
|
||||
$computed = $this->attributes[$extrafieldsobjectkey]['computed'][$key];
|
||||
$unique = $this->attributes[$extrafieldsobjectkey]['unique'][$key];
|
||||
@ -1911,7 +1911,7 @@ class ExtraFields
|
||||
} elseif ($type == 'password') {
|
||||
$value = dol_trunc(preg_replace('/./i', '*', $value), 8, 'right', 'UTF-8', 1);
|
||||
} else {
|
||||
$showsize = round($size);
|
||||
$showsize = round((float) $size);
|
||||
if ($showsize > 48) {
|
||||
$showsize = 48;
|
||||
}
|
||||
|
||||
@ -284,6 +284,7 @@ if ($conf->use_javascript_ajax) {
|
||||
print '</script>'."\n";
|
||||
}
|
||||
|
||||
$formconfirm = '';
|
||||
if ($action == 'delete') {
|
||||
$formconfirm = $form->formconfirm($_SERVER['PHP_SELF']."?id=".$object->id, $langs->trans("CronDelete"), $langs->trans("CronConfirmDelete"), "confirm_delete", '', '', 1);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user