Merge pull request #23541 from FHenry/16_fix_token
fix: token for scan inventory
This commit is contained in:
commit
6ce20e3bae
@ -609,7 +609,7 @@ if ($object->id > 0) {
|
|||||||
if ($permissiontoadd) {
|
if ($permissiontoadd) {
|
||||||
// Link to launch scan tool
|
// Link to launch scan tool
|
||||||
if (!empty($conf->barcode->enabled) || !empty($conf->productbatch->enabled)) {
|
if (!empty($conf->barcode->enabled) || !empty($conf->productbatch->enabled)) {
|
||||||
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=updatebyscaning" class="marginrightonly paddingright marginleftonly paddingleft">'.img_picto('', 'barcode', 'class="paddingrightonly"').$langs->trans("UpdateByScaning").'</a>';
|
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=updatebyscaning&token='.currentToken().'" class="marginrightonly paddingright marginleftonly paddingleft">'.img_picto('', 'barcode', 'class="paddingrightonly"').$langs->trans("UpdateByScaning").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Link to autofill
|
// Link to autofill
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user