Bug #2483
settings.createInt ignores min & max limit
Status: | Fixed | Start date: | 01/12/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 100% | ||
Category: | Ecmascript & Duktape | |||
Target version: | 4.10 | |||
Found in version: | 4.9.46.g5134a.dirty | Platform: | PS3 |
Description
If type in plugin.json is set to ecmascript, settings.createInt goes past the set limits with the slider.
Changing to javascript in type will restore the slider functionality so it works as expected.
settings.createInt("entriesPerCategory", "Entries per category on front page", 10, 5, 20, 1, "", function(v) {
service.entriesPerCategory = v;
});
Associated revisions
ecmascript: Fix broken integer-setting range clamping
Fixes #2483
History
#1
Updated by Leonid Protasov about 8 years ago
- Category changed from API to Ecmascript & Duktape
- Target version set to 4.10
#2
Updated by Fredrik Lundmark about 8 years ago
Edit: It does not matter if you use apiversion: 1 or apiversion: 2.
#3
Updated by Andreas Smas about 8 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset git|270939a4dd2507e36c2f9d30347fe1370146af38.