Closed e-gaulue closed 8 years ago
Dear developers,
We have external applications (SAGE) that automatically request status change from a module.
In some case, this leads to Module::getInstanceByName($order->module); being called from changeIdOrderState. At end TggAtos construct is called and get to:
Module::getInstanceByName($order->module);
changeIdOrderState
TggAtos
if ($this->context->employee instanceof Employee && $this->context->employee->isLoggedBack() && ($this->context->controller instanceof AdminModulesController) && !in_array($this->name, explode('|', Tools::getValue('configure', '')))) { $this->autoCheck(); }
where isLoggedBack looks for password in the cookie...
isLoggedBack
But our scripts are launched through curl style mechanisms, leading to having no password as we have no cookie.
Could you consider, this code in next version:
if ($this->context->employee instanceof Employee && ($this->context->controller instanceof AdminModulesController) && $this->context->employee->isLoggedBack() && !in_array($this->name, explode('|', Tools::getValue('configure', '')))) { $this->autoCheck(); }
Or even put all the employee tests at the end.
Best regards, EG
Do you have the problem with the RC_4.0.0 version?
https://github.com/TrogloGeek/prestashop-tggatos-module/blob/RC_4.0.0/tggatos.php#L235
there will probably be no more 3.x version update
Dear developers,
We have external applications (SAGE) that automatically request status change from a module.
In some case, this leads to
Module::getInstanceByName($order->module);
being called fromchangeIdOrderState
. At endTggAtos
construct is called and get to:where
isLoggedBack
looks for password in the cookie...But our scripts are launched through curl style mechanisms, leading to having no password as we have no cookie.
Could you consider, this code in next version:
Or even put all the employee tests at the end.
Best regards, EG