noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 30/119: Bug 1834 : duplicate , cannot confirm


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 30/119: Bug 1834 : duplicate , cannot confirm an duplicated operation because the $_GET is taken in priority
Date: Mon, 26 Oct 2020 18:27:09 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 42aa751b17b3cf2df749397d530dc85b58b315c8
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Mon Sep 21 21:40:50 2020 +0200

    Bug 1834 : duplicate , cannot confirm an duplicated operation
    because the $_GET is taken in priority
---
 include/class/acc_operation.class.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/class/acc_operation.class.php 
b/include/class/acc_operation.class.php
index 93f1775..06946c7 100644
--- a/include/class/acc_operation.class.php
+++ b/include/class/acc_operation.class.php
@@ -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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]