Merge pull request #22703 from Hystepik/develop#3

Fix : wrong backtopage in recruitmentcandidature_agenda.php
This commit is contained in:
Laurent Destailleur 2022-11-01 21:47:08 +01:00 committed by GitHub
commit 27b82e2dad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,8 @@ if ($object->id > 0) {
if (get_class($objthirdparty) == 'Societe') {
$out .= '&socid='.$objthirdparty->id;
}
$out .= (!empty($objcon->id) ? '&contactid='.$objcon->id : '').'&backtopage=1&percentage=-1';
$backtopageurl = urlencode($_SERVER['PHP_SELF'].'?id='.$objthirdparty->id);
$out .= (!empty($objcon->id) ? '&contactid='.$objcon->id : '').'&backtopage='.$backtopageurl.'&percentage=-1';
//$out.=$langs->trans("AddAnAction").' ';
//$out.=img_picto($langs->trans("AddAnAction"),'filenew');
//$out.="</a>";