1
0
mirror of synced 2025-02-20 08:53:14 +03:00

ref #91065 Fixed the error of displaying the 'Add' button to mapping custom fields (#320)

This commit is contained in:
Uryvskiy Dima 2024-01-31 09:10:05 +03:00 committed by GitHub
parent a0d681509d
commit 55a154da83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 13 additions and 5 deletions

View File

@ -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)

View File

@ -1 +1 @@
4.7.0
4.7.1

View File

@ -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 {

View File

@ -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
@ -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)

View File

@ -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

View File

@ -16,7 +16,7 @@
*
* @link https://wordpress.org/plugins/woo-retailcrm/
*
* @version 4.7.0
* @version 4.7.1
*
* @package RetailCRM
*/