Skip to content

Commit 45d543f

Browse files
authored
Merge pull request #242 from mollie/10.0.1
10.0.1
2 parents 911aca7 + 0e8037a commit 45d543f

File tree

6 files changed

+21
-7
lines changed

6 files changed

+21
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# Changelog #
44

5+
#### Changes in release 10.0.1
6+
+ Fixed bug while saving API keys in multi-store setup
7+
+ Fixed bug that showed Mollie in payments list twice in admin
8+
59
#### Changes in release 10.0.0
610
+ Created two separate versions of the module for OCMOD and VQMOD
711
+ Removed "util" support

admin/view/template/payment/mollie(max_1.5.6.4).tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
<div class="input-group message-block">
277277
<input type="text" name="<?php echo $store['store_id']; ?>_<?php echo $code; ?>_api_key" value="<?php echo $store[$code . '_api_key']; ?>" placeholder="live_..." id="<?php echo $code; ?>_api_key" class="form-control" store="<?php echo $store['store_id']; ?>" <?php echo $store['store_id']; ?>-data-payment-mollie-api-key/>
278278
<input type="text" value="" class="form-control" <?php echo $store['store_id']; ?>-data-payment-mollie-api-key-hide>
279-
<span class="toggleAPIKey">Show</span>
279+
<span class="toggleAPIKey<?php echo $store['store_id']; ?>">Show</span>
280280
</div>
281281
<?php if ($store['error_api_key']) { ?>
282282
<div class="text-danger"><?php echo $store['error_api_key']; ?></div>
@@ -824,7 +824,7 @@ $(document).ready(function () {
824824
$('[<?php echo $store["store_id"] ?>-data-payment-mollie-api-key]').hide();
825825
$('[<?php echo $store["store_id"] ?>-data-payment-mollie-api-key-hide]').val(prefix + '******************************');
826826
827-
const toggleAPIKey = document.querySelector('.toggleAPIKey');
827+
const toggleAPIKey = document.querySelector('.toggleAPIKey<?php echo $store['store_id']; ?>');
828828
829829
toggleAPIKey.addEventListener('click', function (e) {
830830
var elem1 = $('[<?php echo $store["store_id"] ?>-data-payment-mollie-api-key-hide]');

admin/view/template/payment/mollie.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
<span class="input-group-addon"><?php echo ($store[$code . '_api_key']) ? '<i class="fa fa-check text-success"></i>' : '<i class="fa fa-minus"></i>' ;?></span>
277277
<input type="text" name="<?php echo $store['store_id']; ?>_<?php echo $code; ?>_api_key" value="<?php echo $store[$code . '_api_key']; ?>" placeholder="live_..." id="<?php echo $code; ?>_api_key" class="form-control" store="<?php echo $store['store_id']; ?>" <?php echo $store['store_id']; ?>-data-payment-mollie-api-key/>
278278
<input type="text" value="" class="form-control" <?php echo $store['store_id']; ?>-data-payment-mollie-api-key-hide>
279-
<span class="input-group-addon toggleAPIKey"><i class="fa fa-eye"></i></span>
279+
<span class="input-group-addon toggleAPIKey<?php echo $store['store_id']; ?>"><i class="fa fa-eye"></i></span>
280280
</div>
281281
<?php if ($store['error_api_key']) { ?>
282282
<div class="text-danger"><?php echo $store['error_api_key']; ?></div>
@@ -868,7 +868,7 @@ $(document).ready(function () {
868868
$('[<?php echo $store["store_id"] ?>-data-payment-mollie-api-key]').hide();
869869
$('[<?php echo $store["store_id"] ?>-data-payment-mollie-api-key-hide]').val(prefix + '******************************');
870870
871-
const toggleAPIKey = document.querySelector('.toggleAPIKey');
871+
const toggleAPIKey = document.querySelector('.toggleAPIKey<?php echo $store['store_id']; ?>');
872872
873873
toggleAPIKey.addEventListener('click', function (e) {
874874
var elem1 = $('[<?php echo $store["store_id"] ?>-data-payment-mollie-api-key-hide]');

catalog/controller/payment/mollie-api-client/helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class MollieHelper extends Controller
66
{
77

8-
const PLUGIN_VERSION = "10.0.0";
8+
const PLUGIN_VERSION = "10.0.1";
99

1010
const OUTH_URL = 'https://api.mollie.com/oauth2';
1111

system/mollie.ocmod.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,12 @@ if (!confirm('{{ text_confirm_refund }}')) {
887887
<operation error="skip">
888888
<search><![CDATA[$data['extensions'][] = array(]]></search>
889889
<add position="before">
890-
<![CDATA[if (preg_match('/mollie_[a-z]*/i', $extension)) continue;]]>
890+
<![CDATA[
891+
if (version_compare(VERSION, '2.3.0.2', '==') && ($file == DIR_APPLICATION . 'controller/payment/mollie.php')) {
892+
continue;
893+
}
894+
895+
if (preg_match('/mollie_[a-z]*/i', $extension)) continue;]]>
891896
</add>
892897
</operation>
893898
</file>

vqmod/xml/mollie.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,12 @@ if (!confirm('{{ text_confirm_refund }}')) {
886886
<operation error="skip">
887887
<search><![CDATA[$data['extensions'][] = array(]]></search>
888888
<add position="before">
889-
<![CDATA[if (preg_match('/mollie_[a-z]*/i', $extension)) continue;]]>
889+
<![CDATA[
890+
if (version_compare(VERSION, '2.3.0.2', '==') && ($file == DIR_APPLICATION . 'controller/payment/mollie.php')) {
891+
continue;
892+
}
893+
894+
if (preg_match('/mollie_[a-z]*/i', $extension)) continue;]]>
890895
</add>
891896
</operation>
892897
</file>

0 commit comments

Comments
 (0)