Debug v14
This commit is contained in:
parent
f334f2a255
commit
cfded75d11
@ -57,7 +57,8 @@ class FormOther
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return HTML code for scanner tool
|
* Return HTML code for scanner tool.
|
||||||
|
* This must be called into an existing <form>
|
||||||
*
|
*
|
||||||
* @param string $jstoexecuteonadd Name of javascript function to call
|
* @param string $jstoexecuteonadd Name of javascript function to call
|
||||||
* @return string HTML component
|
* @return string HTML component
|
||||||
@ -68,7 +69,6 @@ class FormOther
|
|||||||
|
|
||||||
$out = '';
|
$out = '';
|
||||||
|
|
||||||
$out .= '<form name="barcodescanner" method="POST">';
|
|
||||||
$out .= '<!-- Popup for mass barcode scanning -->'."\n";
|
$out .= '<!-- Popup for mass barcode scanning -->'."\n";
|
||||||
$out .= '<div class="div-for-modal-topright" style="padding: 15px">';
|
$out .= '<div class="div-for-modal-topright" style="padding: 15px">';
|
||||||
$out .= '<center><strong>Barcode scanner tool...</strong></center><br>';
|
$out .= '<center><strong>Barcode scanner tool...</strong></center><br>';
|
||||||
@ -98,7 +98,6 @@ class FormOther
|
|||||||
|
|
||||||
$out .= '</center>';
|
$out .= '</center>';
|
||||||
$out .= '</div>';
|
$out .= '</div>';
|
||||||
$out .= '</form>';
|
|
||||||
|
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -99,6 +99,10 @@ $now = dol_now();
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if ($cancel) {
|
||||||
|
$action = '';
|
||||||
|
}
|
||||||
|
|
||||||
if ($action == 'cancel_record' && $permissiontoadd) {
|
if ($action == 'cancel_record' && $permissiontoadd) {
|
||||||
$object->setCanceled($user);
|
$object->setCanceled($user);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user