Skip to content

Commit

Permalink
ref #91065 Fixed the error of displaying the 'Add' button to mapping …
Browse files Browse the repository at this point in the history
…custom fields (#320)
  • Loading branch information
uryvskiy-dima authored Jan 31, 2024
1 parent a0d6815 commit 55a154d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2024-01-30 4.7.1
* Fixed the error of displaying the 'Add' button to mapping custom fields

## 2023-12-07 4.7.0
* Added support WooCommerce 8.2 (HPOS)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.7.0
4.7.1
4 changes: 3 additions & 1 deletion src/assets/js/retailcrm-meta-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ jQuery(function () {
}

RetailcrmMetaFields.prototype.fillSelects = function (data, entity, index) {
if (Object.keys(data.meta).length - 1 <= index || Object.keys(data.custom).length - 1 <= index) {
let allCountCrmFields = Object.keys(data.custom).length + Object.keys(data.crmDefault).length;

if (Object.keys(data.meta).length - 1 <= index || allCountCrmFields - 1 <= index) {
if (entity === 'order') {
jQuery('#add-new-select-order-retailcrm').addClass('retailcrm-hidden')
} else {
Expand Down
5 changes: 4 additions & 1 deletion src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla
Requires PHP: 7.0
Requires at least: 5.3
Tested up to: 6.4
Stable tag: 4.7.0
Stable tag: 4.7.1
License: GPLv1 or later
License URI: http://www.gnu.org/licenses/gpl-1.0.html

Expand Down Expand Up @@ -82,6 +82,9 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i


== Changelog ==
= 4.7.1 =
* Fixed the error of displaying the 'Add' button to mapping custom fields

= 4.7.0 =
* Added support WooCommerce 8.2 (HPOS)

Expand Down
2 changes: 1 addition & 1 deletion src/retailcrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Integration plugin for WooCommerce & Simla.com
* Author: RetailDriver LLC
* Author URI: http://retailcrm.pro/
* Version: 4.7.0
* Version: 4.7.1
* Tested up to: 6.4
* WC requires at least: 5.4
* WC tested up to: 8.3
Expand Down
2 changes: 1 addition & 1 deletion src/uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @link https://wordpress.org/plugins/woo-retailcrm/
*
* @version 4.7.0
* @version 4.7.1
*
* @package RetailCRM
*/
Expand Down

0 comments on commit 55a154d

Please sign in to comment.