mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
Fixed bugs switching Debug mode and WebJobs from the settings page
This commit is contained in:
parent
5b9b6a7a99
commit
2bdf1cc4de
@ -455,7 +455,9 @@ class RetailcrmTools
|
||||
*/
|
||||
public static function isDebug()
|
||||
{
|
||||
return '1' === Configuration::get(RetailCRM::ENABLE_DEBUG_MODE);
|
||||
$value = Configuration::get(RetailCRM::ENABLE_DEBUG_MODE);
|
||||
|
||||
return '1' === $value || true === $value;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -489,6 +491,11 @@ class RetailcrmTools
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* WebJobs should be enabled by default, so here we check if it was explicitly disabled
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function isWebJobsEnabled()
|
||||
{
|
||||
return '0' !== Configuration::get(RetailCRM::ENABLE_WEB_JOBS);
|
||||
|
@ -971,7 +971,7 @@ class RetailCRM extends Module
|
||||
'enableOrderNumberSending' => (false !== Tools::getValue(static::ENABLE_ORDER_NUMBER_SENDING)),
|
||||
'enableOrderNumberReceiving' => (false !== Tools::getValue(static::ENABLE_ORDER_NUMBER_RECEIVING)),
|
||||
'debugMode' => (false !== Tools::getValue(static::ENABLE_DEBUG_MODE)),
|
||||
'webJobs' => (false !== Tools::getValue(static::ENABLE_WEB_JOBS, true) ? '1' : '0'),
|
||||
'webJobs' => (false !== Tools::getValue(static::ENABLE_WEB_JOBS) ? '1' : '0'),
|
||||
'collectorActive' => (false !== Tools::getValue(static::COLLECTOR_ACTIVE)),
|
||||
'collectorKey' => (string) (Tools::getValue(static::COLLECTOR_KEY)),
|
||||
'clientId' => Configuration::get(static::CLIENT_ID),
|
||||
|
Loading…
x
Reference in New Issue
Block a user