Skip to content

Commit 2f5e149

Browse files
committed
fix: bugs
1 parent 911c096 commit 2f5e149

File tree

6 files changed

+26
-12
lines changed

6 files changed

+26
-12
lines changed

config.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<module>
33
<name>vuefront</name>
44
<displayName><![CDATA[VueFront]]></displayName>
5-
<version><![CDATA[2.1.1]]></version>
5+
<version><![CDATA[2.1.2]]></version>
66
<description><![CDATA[CMS Connect App for PrestaShop]]></description>
77
<author><![CDATA[VueFront]]></author>
88
<tab><![CDATA[front_office_features]]></tab>
99
<confirmUninstall><![CDATA[Are you sure you want to uninstall?]]></confirmUninstall>
1010
<is_configurable>1</is_configurable>
1111
<need_instance>0</need_instance>
1212
<limited_countries></limited_countries>
13-
</module>
13+
</module>

model/common/customer.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ public function updateCustomerData($id, $data)
2121

2222
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
2323
if (!$result) {
24-
Db::getInstance(_PS_USE_SQL_SLAVE_)->execute('INSERT INTO `' . _DB_PREFIX_ . 'vuefront_customer` SET id_customer = \''.$id.'\', phone = \''.$data['phone'].'\'');
24+
Db::getInstance(_PS_USE_SQL_SLAVE_)->execute(
25+
'INSERT INTO `' . _DB_PREFIX_ . 'vuefront_customer`
26+
SET id_customer = \''.$id.'\', phone = \''.$data['phone'].'\''
27+
);
2528
} else {
26-
DB::getInstance(_PS_USE_SQL_SLAVE_)->execute('UPDATE `'._DB_PREFIX_.'vuefront_customer` SET phone = \''.$data['phone'].'\' WHERE id_customer = \''.$id.'\'');
29+
DB::getInstance(_PS_USE_SQL_SLAVE_)->execute(
30+
'UPDATE `'._DB_PREFIX_.'vuefront_customer`
31+
SET phone = \''.$data['phone'].'\' WHERE id_customer = \''.$id.'\''
32+
);
2733
}
2834
}
2935
public function getCustomerData($id)

resolver/common/home.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ public function updateSite($args)
5252

5353
curl_setopt($ch, CURLOPT_HEADER, 0);
5454
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
55-
curl_setopt($ch, CURLOPT_URL, "https://vuefront2019.s3.amazonaws.com/sites/".$args['number']."/vuefront-app.tar");
55+
curl_setopt(
56+
$ch,
57+
CURLOPT_URL,
58+
"https://vuefront2019.s3.amazonaws.com/sites/".$args['number']."/vuefront-app.tar"
59+
);
5660
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 150);
5761
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
5862

@@ -107,7 +111,7 @@ public function authProxy($args)
107111
return $result['token'];
108112
}
109113

110-
public function version($args)
114+
public function version()
111115
{
112116
return '1.0.0';
113117
}

views/js/d_vuefront/82c1c478b5af344ee048.bundle.js

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

views/js/graphiql.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuefront.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct()
2424
{
2525
$this->name = 'vuefront'; // internal identifier, unique and lowercase
2626
$this->tab = 'front_office_features'; // backend module coresponding category
27-
$this->version = '2.1.1'; // version number for the module
27+
$this->version = '2.1.2'; // version number for the module
2828
$this->author = 'VueFront'; // module author
2929
$this->need_instance = 0; // load the module when displaying the "Modules" page in backend
3030
$this->bootstrap = true;
@@ -147,7 +147,7 @@ public function registerAdminAjaxTab()
147147
}
148148

149149
$tab->id_parent = -1;
150-
150+
151151
return $tab->save();
152152
}
153153
public function registerAdminTab()

0 commit comments

Comments
 (0)