Bug #2425
page.options.createBool in api v1 passes true as integer of 0 instead of boolean true
Status: | Fixed | Start date: | 12/21/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 100% | ||
Category: | API | |||
Target version: | 4.8 | |||
Found in version: | 4.7.535 | Platform: | Linux |
Description
The code in rad.io plugin:
page.options.createBool('informationBar', 'Show Information Bar', true, function (v) { page.metadata.informationBar = v; }, true);
v = 0 instead of true;
If you do this as workaround:
page.options.createBool('informationBar', 'Show Information Bar', 1, function (v) { page.metadata.informationBar = v; }, true);
v = 1 but it is incorrect as the param should be bool as told in specs.
Associated revisions
ecmascript/settings: Better handling of bool type
Fixes #2425
History
#1
Updated by Andreas Smas over 6 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset git|664950bd63c72b9581247b809c9cc223842ce12b.