Announcement

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

    bug in filterEditor when two grid fields reference same datasource field

    Hi,

    Take https://smartclient.com/smartclient/...pressionFilter and another field to countryList:
    Code:
    {
      name:"population2",
      dataPath: "population",
      canFilter: false,
    }
    Then enter something in filter for population field and see resulting criteria.
    In my case it was even worse as I had additional field with type "image" to show preview of a photo when original was "integer" with photo_id. Resulting criterion's value for entering photo_id was something like "123 and 123".

    I think that canFilter fields could be ignored when building criteria from filterEditor.

    Best regards,
    Janusz

    #2
    Thanks for the report - we've applied a fix which you can try out in builds dated September 30 and later.

    Note that the issue wasn't around duplicate fields or the value of canFilter, but was a re-parsing edge-case to do with conjunctive operators ("and"/"or").

    Comment

    Working...
    X