Add contextpage to open popup to change customers

This commit is contained in:
Laurent Destailleur 2019-03-28 12:32:32 +01:00
parent 3de82ad345
commit 396e79199c
2 changed files with 2 additions and 2 deletions

View File

@ -1007,7 +1007,7 @@ while ($i < min($num, $limit))
$companystatic->fk_prospectlevel=$obj->fk_prospectlevel;
print '<tr class="oddeven" onclick="location.href=\'customers.php?action=change&idcustomer='.$obj->rowid.'&place='.$place.'\'">';
print '<tr class="oddeven" onclick="location.href=\'customers.php?action=change&contextpage=poslist&idcustomer='.$obj->rowid.'&place='.$place.'\'">';
if (! empty($arrayfields['s.rowid']['checked']))
{
print '<td class="tdoverflowmax50">';

View File

@ -278,7 +278,7 @@ function deleteline() {
}
function Customer() {
$.colorbox({href:"customers.php?nomassaction=1&place="+place, width:"90%", height:"80%", transition:"none", iframe:"true", title:"<?php echo $langs->trans("Customer");?>"});
$.colorbox({href:"customers.php?contextpage=poslist&nomassaction=1&place="+place, width:"90%", height:"80%", transition:"none", iframe:"true", title:"<?php echo $langs->trans("Customer");?>"});
}
function CloseBill() {