Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional formatting rules do not apply to relation reference widget comboboxes, when using a sort expression #26409

Closed
qgib opened this issue Mar 23, 2018 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms

Comments

@qgib
Copy link
Contributor

qgib commented Mar 23, 2018

Author Name: Andreas Neumann (@andreasneumann)
Original Redmine Issue: 18521
Affected QGIS version: 3.1(master)
Redmine category:edit_widget
Assignee: David Signer


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!


@qgib
Copy link
Contributor Author

qgib commented Apr 9, 2018

Author Name: David Signer (@signedav)


  • assigned_to_id was configured as David Signer

@qgib
Copy link
Contributor Author

qgib commented Apr 9, 2018

Author Name: David Signer (@signedav)


Am I right with the suppose that the order (sort) has no influence. It's only in case you have a Display Expression there not only containing one field. Correct?

@qgib
Copy link
Contributor Author

qgib commented Apr 12, 2018

Author Name: David Signer (@signedav)


Applied in changeset 4d98479.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Apr 12, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms
Projects
None yet
Development

No branches or pull requests

1 participant