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

Drag & Drop designer control visibility by expression with field IS NOT NULL doesn't work if the field is configured with html #47363

Closed
2 tasks done
tudorbarascu opened this issue Feb 15, 2022 · 2 comments · Fixed by #47432
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms

Comments

@tudorbarascu
Copy link
Member

What is the bug or the crash?

Using Drag & Drop Designer Control visibility by expression Doesn't work when is based on a html_field IS NOT NULL expression and the html_field widget is configured with the HTML checked like in the image. I've attached a test project. If I untick the HTML option then the rule works as it should and the Bug Group is hidden.

image

image

Steps to reproduce the issue

  1. Download the attached project
    visibility_by_expression_bug.zip

  2. Open the form of the point and you shouldn't see the Bug group as the expression should have hidden it.

  3. If you untick the HTML box in the textedit widget it works.

Tried also with master build from source just now.

Versions

<style type="text/css"> p, li { white-space: pre-wrap; } </style>
QGIS version 3.22.3-Białowieża QGIS code revision 22ecf35
Qt version 5.15.2
Python version 3.9.2
GDAL/OGR version 3.4.1
PROJ version 7.2.1
EPSG Registry database version v10.008 (2020-12-16)
GEOS version 3.10.2-CAPI-1.16.0
SQLite version 3.34.1
PDAL version 2.2.0
PostgreSQL client version 14.2 (Debian 14.2-1.pgdg110+1)
SpatiaLite version 5.0.1
QWT version 6.1.4
QScintilla2 version 2.11.6
OS version Debian GNU/Linux 11 (bullseye)
       
Active Python plugins
pluginbuilder3 3.2.1
wps 3.0.0
slyr_community 3.2.1
Discovery 2.5.7
mask 1.10.1
project_export_inspire 1.0.0
pg_history_viewer 2.2
QNEAT3 1.0.4
LAStools 1.4
qgis_resource_sharing 0.16.0
water_topology_plugin 0.1
water_analytics 0.1
QGIS_Dashboard-master 0.1
plugin_reloader 0.9.1
qtibia_docs_py3 0.1
scriptrunner3 3.0.5
QuickWKT 3.1
searchlayers 3.0.5
trackable_project_files v1.2.2
db_manager 0.1.20
sagaprovider 2.12.99
processing 2.12.99
grassprovider 2.12.99
QGIS version 3.22.3-Białowieża QGIS code revision [22ecf35](https://github.com/qgis/QGIS/commit/22ecf35491) Qt version 5.15.2 Python version 3.9.2 GDAL/OGR version 3.4.1 PROJ version 7.2.1 EPSG Registry database version v10.008 (2020-12-16) GEOS version 3.10.2-CAPI-1.16.0 SQLite version 3.34.1 PDAL version 2.2.0 PostgreSQL client version 14.2 (Debian 14.2-1.pgdg110+1) SpatiaLite version 5.0.1 QWT version 6.1.4 QScintilla2 version 2.11.6 OS version Debian GNU/Linux 11 (bullseye)

Active Python plugins
pluginbuilder3
3.2.1
wps
3.0.0
slyr_community
3.2.1
Discovery
2.5.7
mask
1.10.1
project_export_inspire
1.0.0
pg_history_viewer
2.2
QNEAT3
1.0.4
LAStools
1.4
qgis_resource_sharing
0.16.0
water_topology_plugin
0.1
water_analytics
0.1
QGIS_Dashboard-master
0.1
plugin_reloader
0.9.1
qtibia_docs_py3
0.1
scriptrunner3
3.0.5
QuickWKT
3.1
searchlayers
3.0.5
trackable_project_files
v1.2.2
db_manager
0.1.20
sagaprovider
2.12.99
processing
2.12.99
grassprovider
2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@tudorbarascu tudorbarascu added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Feb 15, 2022
@gioman gioman added the Forms label Feb 15, 2022
@elpaso
Copy link
Contributor

elpaso commented Feb 18, 2022

@tudorbarascu just to point out that if you uncheck HTML it does not completely work because there is no way to go back to NULL once you have typed something in the text edit.

elpaso added a commit to elpaso/QGIS that referenced this issue Feb 18, 2022
@tudorbarascu
Copy link
Member Author

@tudorbarascu just to point out that if you uncheck HTML it does not completely work because there is no way to go back to NULL once you have typed something in the text edit.

Thanks for the info. That's ok.

nyalldawson pushed a commit that referenced this issue Feb 20, 2022
qgis-bot pushed a commit that referenced this issue Feb 20, 2022
qgis-bot pushed a commit that referenced this issue Feb 20, 2022
nyalldawson pushed a commit that referenced this issue Feb 21, 2022
nyalldawson pushed a commit that referenced this issue Feb 21, 2022
nyalldawson pushed a commit that referenced this issue Feb 21, 2022
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

Successfully merging a pull request may close this issue.

3 participants