Skip to content

Commit e3f3333

Browse files
authored
Restrict negative value (#466)
1 parent 4e0105c commit e3f3333

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Resources/public/js/config/conditions.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ pimcore.plugin.cmf.rule.conditions.CountActivities = Class.create(pimcore.plugin
221221
xtype: "numberfield",
222222
name: "count",
223223
width: 90,
224-
value: this.options.count
224+
value: this.options.count,
225+
minValue: 0
225226
}
226227
]
227228
}
@@ -452,7 +453,8 @@ pimcore.plugin.cmf.rule.conditions.CountTrackedSegment = Class.create(pimcore.pl
452453
//xtype: "numberfield",
453454
name: "count",
454455
width: 90,
455-
value: this.options.count
456+
value: this.options.count,
457+
minValue: 0
456458
});
457459

458460
return [
@@ -531,7 +533,8 @@ pimcore.plugin.cmf.rule.conditions.CountTargetGroupWeight = Class.create(pimcore
531533
xtype: "numberfield",
532534
name: "count",
533535
width: 90,
534-
value: this.options.count
536+
value: this.options.count,
537+
minValue: 0
535538
}
536539
]
537540
},

0 commit comments

Comments
 (0)