Skip to content

Commit

Permalink
FIX : Wrong backtopage given for the stocktransfer button from the st…
Browse files Browse the repository at this point in the history
…ocktransfer list (#26271)
  • Loading branch information
atm-adrien authored Oct 19, 2023
1 parent cee2fc6 commit 17c489b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/product/stock/stocktransfer/stocktransfer_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ function init_myfunc()
//print '<input type="hidden" name="page" value="'.$page.'">';
print '<input type="hidden" name="contextpage" value="'.$contextpage.'">';

$newcardbutton = dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', dol_buildpath('/product/stock/stocktransfer/stocktransfer_card.php', 1).'?action=create&backtopage='.urlencode($_SERVER['PHP_SELF']), '', $permissiontoadd);
$newcardbutton = dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', dol_buildpath('/product/stock/stocktransfer/stocktransfer_card.php', 1).'?action=create', '', $permissiontoadd);

print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'object_'.$object->picto, 0, $newcardbutton, '', $limit, 0, 0, 1);

Expand Down

0 comments on commit 17c489b

Please sign in to comment.