Bug report #18521
Conditional formatting rules do not apply to relation reference widget comboboxes, when using a sort expression
|Affected QGIS version:
|Pull Request or Patch supplied:
|Crashes QGIS or corrupts data:
|Copied to github as #:
When using row level conditional format rules on a table that is also referenced in a relation reference widget, the same formatting applies in the combobox of the relation reference widget.
This works fine, unless one uses a custom expression for sorting the values. As soon as the sort expression is applied, the format rule is not applied anymore.
See attached screenshots. First two screenshots show the format rule. Screenshot 3 (a and b) shows that the format rule works if only a sort column is used, screenshot 4 (a and b) shows that the format rule fails when a sort expression is used.
If fixed, it should also be backported to version 3.0x
Thanks for having a look at this issue!
Conditional formatting on relation reference widget
in case we have additional display expressions there does use the conditional formatting for the row
and in case there is only one fieldname used in the display expression it does use this as well