Bug 1834 : duplicate , cannot confirm an duplicated operation

because the $_GET is taken in priority
This commit is contained in:
Dany De Bontridder 2020-09-21 21:40:50 +02:00
parent 1fac8168bd
commit 42aa751b17

View file

@ -752,6 +752,11 @@ class Acc_Operation
$r=sprintf('<form id="%s" method="POST" ACTION="%s">',$p_id,NOALYSS_URL."/do.php?".Dossier::get());
$r.=Dossier::hidden();
// select the menu where the operation will be duplicated
$r=sprintf('<form id="%s" method="POST" ACTION="%s">',$p_id,NOALYSS_URL."/do.php?".http_build_query([
"ac"=>$a_code[0]['code'],"gDossier"=>Dossier::id()
]));
$r.=Dossier::hidden();
// select the menu where the operation will be duplicated
$r.="<p>";
$r.="<ul style=\"margin-left:2rem;padding-left:0;list-style:none;\">";
$r.=sprintf("<li>%s</li>",$operation->det->jr_pj_number);