diff --git a/README.md b/README.md index dca3e72..0a2be4f 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ e.g. ``` git clone https://github.com/pcapredict/magento2.git Tag``` - Download the latest release from the github site (https://github.com/PCAPredict/magento2/releases/). - Extract the zip contents to the **Tag** folder you just created. The README.md and all other files and folders should be under the **Tag** folder. -### If your using Composer +### If you're using Composer - Integrated with Packagist, so you should be able to get the latest version with: -```composer require pcapredict/tag:^2.0.7``` +```composer require pcapredict/tag:^2.0.8``` ### Magento Setup - Make sure you have the correct file and folder permissions set on your magento installation so that the magnento store can install the app. diff --git a/composer.json b/composer.json index d643dcf..3bf8b14 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ } }, "require": { - "php": "~5.5.0|~5.6.0|~7.0.0|~7.1.0" + "php": "~5.5.0|~5.6.0|~7.0.0|~7.1.0|~7.2.0|~7.3.0" }, "autoload": { "psr-4": { @@ -19,7 +19,7 @@ ] }, "type": "magento2-module", - "version": "2.0.7", + "version": "2.0.9", "authors": [ { "name": "PCA Predict", diff --git a/view/adminhtml/templates/customer_index_edit_script.phtml b/view/adminhtml/templates/customer_index_edit_script.phtml index cb06196..5d4d4c5 100644 --- a/view/adminhtml/templates/customer_index_edit_script.phtml +++ b/view/adminhtml/templates/customer_index_edit_script.phtml @@ -21,7 +21,10 @@ pca.magento.currentUrl = window.location.href; pca.magento.isElementVisible = function( elem ) { - return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); + if (elem) { + return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); + } + return false; }; var backup = {}; diff --git a/view/adminhtml/templates/sales_order_create_customer_block_script.phtml b/view/adminhtml/templates/sales_order_create_customer_block_script.phtml index c34bc2c..2b17075 100644 --- a/view/adminhtml/templates/sales_order_create_customer_block_script.phtml +++ b/view/adminhtml/templates/sales_order_create_customer_block_script.phtml @@ -20,7 +20,10 @@ pca.magento = pca.magento || {}; pca.magento.isElementVisible = function( elem ) { - return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); + if (elem) { + return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); + } + return false; }; var fieldsToPopulate = [];