Skip to content

Commit

Permalink
Merged develop into master
Browse files Browse the repository at this point in the history
  • Loading branch information
JonYeb committed Nov 22, 2022
2 parents 0dc0c95 + d3f8dfb commit fed3bb1
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 7 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Changelog

## 1.6.8
* bugfix: improved PHP 8.1 compatibility
* fixed country value not being sent in form

## 1.6.7
* bugfix: remove PackstationType.php
* bugfix: prevent null parameter in html_entity_decode
Expand Down
2 changes: 1 addition & 1 deletion project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"pathToModule": "copy_this/modules/mo/mo_dhl",
"prefix": "mo_",
"suffix": "",
"version": "1.6.7",
"version": "1.6.8",
"compatibility": {
"minimumVersion": "6.0",
"maximumVersion": null,
Expand Down
4 changes: 2 additions & 2 deletions src/modules/mo/mo_dhl/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static function onActivate()
static::cleanUp();
}

protected function ensureDocumentsFolderExists()
protected static function ensureDocumentsFolderExists()
{
$path = Registry::get(ViewConfig::class)->getModulePath('mo_dhl', '') . 'documents';
if (!is_dir($path)) {
Expand Down Expand Up @@ -251,7 +251,7 @@ protected static function addColumns()

/**
*/
protected function alterColumns()
protected static function alterColumns()
{
self::alterColumn('oxorder', 'MO_DHL_PARTICIPATION', 'CHAR(5)');
self::alterColumn('oxdeliveryset', 'MO_DHL_PARTICIPATION', 'CHAR(5)');
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mo/mo_dhl/metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'en' => '<p>Enable features providing Post & Paket Delivery to your OXID shop.</p>' . '<p><a href="https://projects.mediaopt.de/projects/mopt-postp-ua/wiki" target="_blank">Handbook</a></p>',
],
'thumbnail' => 'logo.png',
'version' => '1.6.7',
'version' => '1.6.8',
'author' => '<a href="http://www.mediaopt.de" target="_blank">mediaopt.</a>',
'url' => 'http://www.mediaopt.de',
'email' => '[email protected]',
Expand Down
13 changes: 11 additions & 2 deletions src/modules/mo/mo_dhl/out/src/js/widgets/flow/mo_dhl.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,19 @@
},
fixCountryToGermany: function () {
var germany = $("#germany-oxid").text();
$("[name='deladr[oxaddress__oxcountryid]']").val(germany).attr('disabled', 'disabled').selectpicker('refresh');
var $hiddenInput = $('<input type="hidden" class="mo-hidden-deladr-country" name="deladr[oxaddress__oxcountryid]">');
$hiddenInput.val(germany);
$("[name='deladr[oxaddress__oxcountryid]']")
.val(germany)
.attr('disabled', 'disabled')
.selectpicker('refresh')
.parent()
.append($hiddenInput)
;
},
loosenFixedCountry: function () {
$("[name='deladr[oxaddress__oxcountryid]']").removeAttr("disabled");
$("[name='deladr[oxaddress__oxcountryid]']").removeAttr("disabled").selectpicker('refresh');
$(".mo-hidden-deladr-country").remove();
},
addAddressChangeListener: function () {
var self = this;
Expand Down
10 changes: 9 additions & 1 deletion src/modules/mo/mo_dhl/out/src/js/widgets/wave/mo_dhl.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,18 @@
},
fixCountryToGermany: function () {
var germany = $("#germany-oxid").text();
$("[name='deladr[oxaddress__oxcountryid]']").val(germany).attr('disabled', 'disabled');
var $hiddenInput = $('<input type="hidden" class="mo-hidden-deladr-country" name="deladr[oxaddress__oxcountryid]">');
$hiddenInput.val(germany);
$("[name='deladr[oxaddress__oxcountryid]']")
.val(germany)
.attr('disabled', 'disabled')
.parent()
.append($hiddenInput)
;
},
loosenFixedCountry: function () {
$("[name='deladr[oxaddress__oxcountryid]']").removeAttr("disabled");
$(".mo-hidden-deladr-country").remove();
},
addAddressChangeListener: function () {
var self = this;
Expand Down

0 comments on commit fed3bb1

Please sign in to comment.