Skip to content

Commit 9df855d

Browse files
committed
add config version
1 parent a9994c7 commit 9df855d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

prestashop1.7/controllers/admin/AdminTawktoController.php

+6
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@ public function ajaxProcessSetOptions()
248248
}
249249
}
250250

251+
if (!isset($jsonOpts['config_version'])) {
252+
$jsonOpts['config_version'] = 0;
253+
} else {
254+
++$jsonOpts['config_version'];
255+
}
256+
251257
Configuration::updateValue($key, json_encode($jsonOpts));
252258

253259
die(json_encode(['success' => true]));

prestashop8.x/controllers/admin/AdminTawktoController.php

+6
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@ public function ajaxProcessSetOptions()
248248
}
249249
}
250250

251+
if (!isset($jsonOpts['config_version'])) {
252+
$jsonOpts['config_version'] = 0;
253+
} else {
254+
++$jsonOpts['config_version'];
255+
}
256+
251257
Configuration::updateValue($key, json_encode($jsonOpts));
252258

253259
die(json_encode(['success' => true]));

0 commit comments

Comments
 (0)