Fix param GETPOST
This commit is contained in:
parent
3939a640e9
commit
4dcc073b3a
@ -59,9 +59,9 @@ if (GETPOST('action', 'aZ09') == 'setremise')
|
|||||||
$discount_type = GETPOST('discount_type', 'int');
|
$discount_type = GETPOST('discount_type', 'int');
|
||||||
|
|
||||||
if (!empty($discount_type)) {
|
if (!empty($discount_type)) {
|
||||||
$result = $object->set_remise_supplier(price2num(GETPOST("remise")), GETPOST("note"), $user);
|
$result = $object->set_remise_supplier(price2num(GETPOST("remise")), GETPOST("note", "alphanohtml"), $user);
|
||||||
} else {
|
} else {
|
||||||
$result = $object->set_remise_client(price2num(GETPOST("remise")), GETPOST("note"), $user);
|
$result = $object->set_remise_client(price2num(GETPOST("remise")), GETPOST("note", "alphanohtml"), $user);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
@ -187,7 +187,7 @@ if ($socid > 0)
|
|||||||
|
|
||||||
// Motif/Note
|
// Motif/Note
|
||||||
print '<tr><td class="fieldrequired">';
|
print '<tr><td class="fieldrequired">';
|
||||||
print $langs->trans("NoteReason").'</td><td><input type="text" size="60" name="note" value="'.dol_escape_htmltag(GETPOST("note")).'"></td></tr>';
|
print $langs->trans("NoteReason").'</td><td><input type="text" size="60" name="note" value="'.dol_escape_htmltag(GETPOST("note", "alphanohtml")).'"></td></tr>';
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user