removing my tests 2

This commit is contained in:
lmarcouiller 2021-01-21 17:18:51 +01:00
commit 5e94cf09ef

View File

@ -2426,7 +2426,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
print $langs->trans('CustomerCode'); print $langs->trans('CustomerCode');
print '</td>'; print '</td>';
print '<td>'; print '<td>';
print showValueWithCopyAndPasteButton($object->code_client, 'code_client',$langs); print showValueWithCopyAndPasteButton($object->code_client, 'code_client', $langs);
print '</td>'; print '</td>';
$tmpcheck = $object->check_codeclient(); $tmpcheck = $object->check_codeclient();
if ($tmpcheck != 0 && $tmpcheck != -5) { if ($tmpcheck != 0 && $tmpcheck != -5) {
@ -2945,7 +2945,8 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
* @param Translate $langs the $langs variable * @param Translate $langs the $langs variable
* @return string the string to print for the button * @return string the string to print for the button
*/ */
function showValueWithCopyAndPasteButton($valuetoprint,$spanid,$langs){ function showValueWithCopyAndPasteButton($valuetoprint, $spanid, $langs)
{
$stringtoprint= '<span id="'.$spanid.'">'; $stringtoprint= '<span id="'.$spanid.'">';
$stringtoprint.= $valuetoprint .'</span>&ensp;'; $stringtoprint.= $valuetoprint .'</span>&ensp;';
$stringtoprint.= '</span>'; $stringtoprint.= '</span>';
@ -2978,4 +2979,3 @@ function showValueWithCopyAndPasteButton($valuetoprint,$spanid,$langs){
// End of page // End of page
llxFooter(); llxFooter();
$db->close(); $db->close();