Skip to content

Processors do not respect type of the parameter that was passed from javascript code #14016

Open
@alroniks

Description

@alroniks

Summary

Passed boolean parameters do not properly process in processors and getProperty returns strings instead of the proper parameter type. It causes various issues in the manager when condition should work but it doesn't.

Step to reproduce

Create any combo-box or other extjs component or use existing and pass any boolean parameter into the processor. Like this:

baseParams: {
    action: 'source/getList',
    showNone: false,
    streamsOnly: true
}

Observed behavior

In the processor $this->getProperty('showNone') returns string instead of boolean variable. If to try to cast the type to boolean it will be always true because the string is not empty ((bool)'false' and (bool)'true' will be always true for both).

Expected behavior

$this->getProperty('myvar') should return proper boolean value as it was passed into the processor.

Environment

2.7.0-dev. 3.x also, and all previous too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue in the code or project, which should be addressed.urgentThe issue requires attention and has higher priority over others.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions