Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Possible bug report [Menu with flat DataSource and initialCriteria]

    Hi,

    I'm using "v10.0p_2015-07-06" and have observed that when initialising a Menu with a DataSource and 'initialCriteria' specified it does not work,

    I've examined the issue and have traced the issue to the initWidget method of the Menu class which looks like:

    Code:
        if (this.dataSource != null && !this.hasFlatDataSource()) {
        //if (this.dataSource != null && isc.ResultTree) {
    
            var criteria = this.initialCriteria || this.criteria;
            ....
            var tree = this.createResultTree(criteria ...
        } else if (this.dataSource != null) {
            ....
            ds.fetchData(null, {caller:this, methodName:"flatDataLoaded"}, requestProperties);
        }
    In 'else if' case it seems that 'null' is being passed to fetchData. I am fairly sure we should be passing initialCriteria so that the behaviour of initialCriteria is consistent with its documentation.

    Just reporting the problem here so you can validate and include it in the next release.

    #2
    Thanks for the headsup - this is fixed for builds dated August 11 and later.

    Comment

    Working...
    X