Projekt

Allgemein

Profil

GX-Bug #69097

Von Till Tepelmann vor mehr als 2 Jahren aktualisiert

AdminOrderActionExtenderComponent Proceed Methode wird nicht ausgeführt, wenn man eine Aktion in der Bestelldetailseite Bestellübersicht ausführt 

 Hier wird bevor die proceed Methode überhaupt aufgerufen wurde, eine Weiterleitung ausgeführt, sodass der spätere Code nie ausgeführt wird. 

 Kann wie folgt reproduziert werden: 

 1. Developer Dokumentation aufrufen https://developers.gambio.de/tutorials.html?v=4.5.1.0_beta1&p=liste-aller-extender#AdminOrderActionExtenderComponent 
 2. Eine Datei "MyOrderAction.inc.php" im Ordner /GXModules/MeineFirma/MeinModul/Admin/Overloads/AdminOrderActionExtenderComponent/ mit folgenden Inhalt erstellen: 

 ``` php 
 class MyOrderAction extends MyOrderAction_parent 
 { 
     public function proceed() 
     { 
         switch($this->v_data_array['action']) 
         { 
             case 'gm_multi_status': 
                die('TEST') 
                 break; 
         } 

         parent::proceed(); 
     } 
 } 
 ``` 

 3. Cache für Modulinformationen ernuern 
 4. In der Bestelldetailseite Bestellübersicht mehrer Bestellungen auswählen und z.B. die Aktion "Bestellstatus ändern" auswählen 
 5. Keine Checkboxen auswählen und den Status ändern 

 ------- 

 AdminOrderActionExtenderComponent Proceed method is not executed when performing an action in the order detail page. overview. 

 Here, before the proceed method is even called, a redirect is executed, so the later code is never executed. 

 Can be reproduced as follows: 

 1. call developer documentation https://developers.gambio.de/tutorials.html?v=4.5.1.0_beta1&p=liste-aller-extender#AdminOrderActionExtenderComponent 
 2. create a file "MyOrderAction.inc.php" in the folder /GXModules/MyCompany/MyModule/Admin/Overloads/AdminOrderActionExtenderComponent/ with the following content: 

 `` ``` php 
 class MyOrderAction extends MyOrderAction_parent 
 { 
     public function proceed() 
     { 
         switch($this->v_data_array['action']) 
         { 
             case 'gm_multi_status': 
                die('TEST') 
                 break; 
         } 

         parent::proceed(); 
     } 
 } 
 ``` 

 3. renew cache for module information 
 4. select several orders in the order overview and e.g. select the action "change order status" in the order detail page status 
 5. select no checkboxes and change the status

Zurück