Skip to content

Commit

Permalink
Restrict negative value (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaantony92 committed May 8, 2023
1 parent 4e0105c commit e3f3333
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Resources/public/js/config/conditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
Expand Down Expand Up @@ -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 [
Expand Down Expand Up @@ -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
}
]
},
Expand Down

0 comments on commit e3f3333

Please sign in to comment.