mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-13 19:25:22 +01:00
FIX : move input type hidden (#28054)
* move input type hidden * pre-commit from another dev * Delete htdocs/includes/mike42/escpos-php/doc/escpos.conf --------- Co-authored-by: jpb <jean-pascal.boudet@atm-consulting> Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
committed by
GitHub
parent
f828cc5119
commit
fe63333c28
@@ -1120,11 +1120,12 @@ class ExtraFields
|
||||
} else {
|
||||
$checked = ' value="1" ';
|
||||
}
|
||||
$out = '<input type="hidden" name="'.$keyprefix.$key.$keysuffix.'_boolean" value="1">'; // A hidden field ending with "_boolean" that is always set to 1.
|
||||
$out .= '<input type="checkbox" class="flat valignmiddle'.($morecss ? ' '.$morecss : '').' maxwidthonsmartphone" name="'.$keyprefix.$key.$keysuffix.'" id="'.$keyprefix.$key.$keysuffix.'" '.$checked.' '.($moreparam ? $moreparam : '').'>';
|
||||
|
||||
$out = '<input type="checkbox" class="flat valignmiddle'.($morecss ? ' '.$morecss : '').' maxwidthonsmartphone" name="'.$keyprefix.$key.$keysuffix.'" id="'.$keyprefix.$key.$keysuffix.'" '.$checked.' '.($moreparam ? $moreparam : '').'>';
|
||||
} else {
|
||||
$out = $form->selectyesno($keyprefix.$key.$keysuffix, $value, 1, false, 1);
|
||||
}
|
||||
$out .= '<input type="hidden" name="'.$keyprefix.$key.$keysuffix.'_boolean" value="1">'; // A hidden field ending with "_boolean" that is always set to 1.
|
||||
} elseif ($type == 'price') {
|
||||
if (!empty($value)) { // $value in memory is a php numeric, we format it into user number format.
|
||||
$value = price($value);
|
||||
@@ -1596,7 +1597,7 @@ class ExtraFields
|
||||
$element = $extrafieldsobjectkey; // $extrafieldsobjectkey comes from $object->table_element but we need $object->element
|
||||
if ($element == 'socpeople') {
|
||||
$element = 'contact';
|
||||
} else if ( $element == 'projet' ) {
|
||||
} elseif ( $element == 'projet' ) {
|
||||
$element = 'project';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user