Skip to content

Commit

Permalink
Fix after Code Review PR#43
Browse files Browse the repository at this point in the history
  • Loading branch information
matks committed Jul 10, 2018
1 parent d8e6b3f commit ba92a06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/CronJobsForms.php
Expand Up @@ -282,7 +282,7 @@ public static function getTasksListValues()
$table_name = _DB_PREFIX_.bqSQL(self::$module->name);

$select_query = sprintf(
"SELECT * FROM `%s` WHERE `id_shop` = '%s' AND `id_shop_group` = '%s'",
"SELECT * FROM `%s` WHERE `id_shop` = '%d' AND `id_shop_group` = '%d'",
$table_name,
$id_shop,
$id_shop_group
Expand Down
2 changes: 1 addition & 1 deletion config.xml
Expand Up @@ -2,7 +2,7 @@
<module>
<name>cronjobs</name>
<displayName><![CDATA[Cron tasks manager]]></displayName>
<version><![CDATA[1.4.0]]></version>
<version><![CDATA[1.3.2]]></version>
<description><![CDATA[Manage all your automated web tasks from a single interface.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[administration]]></tab>
Expand Down
3 changes: 2 additions & 1 deletion upgrade/upgrade-1.0.6.php
Expand Up @@ -30,7 +30,8 @@

function upgrade_module_1_0_6($module)
{
$table_name = _DB_PREFIX_ . $module->name;
$table_name = _DB_PREFIX_.bqSQL($module->name);


$look_for_columns = Db::getInstance()->ExecuteS(sprintf('SHOW COLUMNS FROM `%s` LIKE \'one_shot\'', $table_name));

Expand Down

0 comments on commit ba92a06

Please sign in to comment.