gburton / CE-Phoenix

WE KEPT OSCOMMERCE ALIVE, but now this Repo is defunct, please see the new Repo URL listed below.
https://github.com/CE-PhoenixCart/PhoenixCart
131 stars 202 forks source link

admin/orders move updateAction hook before message stack #966

Closed raiwa closed 4 years ago

raiwa commented 4 years ago

In admin/orders.php line 71:

        $OSCOM_Hooks->call('orders', 'updateAction');

should be moved before the message stack snippet (lines 65-9):

        if ($order_updated == true) {
          $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success');
        } else {
          $messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning');
        }

to allow the hook code to set $order_updated = true to trigger the message stack if it updates something.

gburton commented 4 years ago

https://github.com/gburton/CE-Phoenix/pull/965/commits/2e0776319b552007f8eb446edc26a7e73a68752f