Merge branch 'ticket-philea3'
This commit is contained in:
commit
03f8ea2f07
@ -660,7 +660,7 @@ class AdminPhileaMagistor extends AdminTab {
|
||||
WHERE `id_sale` IN (' . implode(', ', $id_sales) . ')
|
||||
AND pm_as.`active` = 1';
|
||||
foreach (Db::getInstance()->executeS($sql) as $row)
|
||||
$pm_active[] = (int) $row['id_sale'];
|
||||
$pm_active[(int) $row['id_sale']] = (int) $row['auto_sync_active'];
|
||||
|
||||
$pm_sent = array();
|
||||
$sql = '
|
||||
|
@ -31,15 +31,15 @@ if ($auto_sync_sales && count($auto_sync_sales))
|
||||
')){
|
||||
continue;
|
||||
}
|
||||
Db::getInstance()->execute('
|
||||
INSERT INTO `'._DB_PREFIX_.'philea_sync`
|
||||
VALUES (
|
||||
DEFAULT,
|
||||
'.(int) $id_sale.',
|
||||
3,
|
||||
NOW()
|
||||
)
|
||||
');
|
||||
// Db::getInstance()->execute('
|
||||
// INSERT INTO `'._DB_PREFIX_.'philea_sync`
|
||||
// VALUES (
|
||||
// DEFAULT,
|
||||
// '.(int) $id_sale.',
|
||||
// 3,
|
||||
// NOW()
|
||||
// )
|
||||
// ');
|
||||
$sql = '
|
||||
UPDATE `'._DB_PREFIX_.'philea_auto_sync`
|
||||
SET `last_sent` = NOW()
|
||||
|
Loading…
Reference in New Issue
Block a user