Review main Abandoned

43807[BUGFIX] BE: return empty array for empty values and not selectSingle

Andreas Allacher CR 0 V 0 Normal +102 −14 updated 11/02/15, 14:54

Commit message

When using single select and we have an empty value:
0, '', '0' the DataProvider returns now an empty array
instead of an array with an empty value.
This will also fix that renderType => selectTree with maxitems = 1
and no MM table returns an empty array and therefore the tree
will not behave as if an item is selected.

For instance, such a scenario would be
the parent category selector in sys_category.

This was partly a regression added with the bugfix for #70081.
However, the original solution was only a workaround for
SelectTreeElement, whereas the real solution should be placed
where the select values are resolved.

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 3

Files 2