shoppingflux / shoppingfluxexport

7 stars 7 forks source link

Fatal error for logDebugOrders function not defined #340

Closed ghost closed 6 years ago

ghost commented 6 years ago

Expected behaviour

All functions in the module should be defined.

Actual behaviour

The function logDebugOrders isn't defined It's visible in the version 4.5 of the module in _validateOrder.

Steps to reproduce the behaviour

When the country linked ot the received order insn't active, the condition will try to call this function which will results to a Fatal Error.

ghost commented 6 years ago

The function should be replaced by SfLogger::getInstance()->log(SF_LOG_ORDERS, $errorMessage);