From 1692c0f624f7f6b6ef1d35a68bad4924ef4b84d2 Mon Sep 17 00:00:00 2001 From: daitingting Date: Fri, 19 Apr 2024 07:13:08 +0000 Subject: [PATCH] * Fix bug #48033. --- lib/zin/wg/batchactions/js/v1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zin/wg/batchactions/js/v1.js b/lib/zin/wg/batchactions/js/v1.js index 9df844aa22..232399f048 100644 --- a/lib/zin/wg/batchactions/js/v1.js +++ b/lib/zin/wg/batchactions/js/v1.js @@ -84,7 +84,7 @@ window.removeItem = function(e) /* Dsiabled btn can't remove line. */ if($(obj).closest('.btn').hasClass('disabled')) return false; - if($(obj).parents('form').find('.form-row').length == 2) return false; + if($(obj).parents('form').find('.action-group').not('.child-hidden').length == 1) return false; $(obj).closest('.form-row').remove();