From e3f333391582d9309115e6b94e875367d0ea7163 Mon Sep 17 00:00:00 2001 From: aryaantony92 <97134765+aryaantony92@users.noreply.github.com> Date: Mon, 8 May 2023 14:15:32 +0200 Subject: [PATCH] Restrict negative value (#466) --- src/Resources/public/js/config/conditions.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Resources/public/js/config/conditions.js b/src/Resources/public/js/config/conditions.js index 41afc7ab..61434d2a 100644 --- a/src/Resources/public/js/config/conditions.js +++ b/src/Resources/public/js/config/conditions.js @@ -221,7 +221,8 @@ pimcore.plugin.cmf.rule.conditions.CountActivities = Class.create(pimcore.plugin xtype: "numberfield", name: "count", width: 90, - value: this.options.count + value: this.options.count, + minValue: 0 } ] } @@ -452,7 +453,8 @@ pimcore.plugin.cmf.rule.conditions.CountTrackedSegment = Class.create(pimcore.pl //xtype: "numberfield", name: "count", width: 90, - value: this.options.count + value: this.options.count, + minValue: 0 }); return [ @@ -531,7 +533,8 @@ pimcore.plugin.cmf.rule.conditions.CountTargetGroupWeight = Class.create(pimcore xtype: "numberfield", name: "count", width: 90, - value: this.options.count + value: this.options.count, + minValue: 0 } ] },