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

Multi Editing constraint issue on Relation Reference #60126

Open
2 tasks done
signedav opened this issue Jan 13, 2025 · 1 comment
Open
2 tasks done

Multi Editing constraint issue on Relation Reference #60126

signedav opened this issue Jan 13, 2025 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Editing Relations Widgets

Comments

@signedav
Copy link
Contributor

signedav commented Jan 13, 2025

What is the bug or the crash?

Having a "Not null" constraint on a field.
image

Even though I have only valid values in the field represented by the Relation Reference, the Muli Edit Form is blocked, because it tells me, the Not NULL constraint is not fulfilled.
image

With text edit, it would accept the constraint:
image

It has nothing to do if the "Allow Null" setting is set or not on the Relation Reference Widget.
image

Steps to reproduce the issue

  1. open testproject from provided gpkg
  2. select multiple features of target_layer
  3. open multi edit

simple.zip

Versions

Dev version on:

QGIS version3.41.0-Master
QGIS code revision9506122f60d
 
Libraries
Qt version5.15.3
Python version3.10.12
GDAL/OGR version3.9.0dev-365401613a
PROJ version8.2.1
EPSG Registry database versionv10.041 (2021-12-03)
GEOS version3.10.2-CAPI-1.16.0
SQLite version3.37.2
PDAL version2.3.0
PostgreSQL client version17.0 (Ubuntu 17.0-1.pgdg22.04+1)
SpatiaLite version5.0.1
QWT version6.1.4
QScintilla2 version2.11.6
OS versionUbuntu 22.04.5 LTS
This copy of QGIS writes debugging output.
 
Active Python plugins
toggle_labels_widget1.0.2
plugin_reloader0.9.3
layer_grid_view0.1
QgisModelBakerdev
changeDataSource3.1
processing2.12.99
db_manager0.1.20

And 3.40.0

Supported QGIS version

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

New profile

Additional context

No response

@signedav signedav added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jan 13, 2025
@signedav
Copy link
Contributor Author

This concerns the multi edit you open via the toolbar. The one in the attribute table behaves differently wrong. It does not block the form by the constraint, but instead it displays the widget-default but does not apply it. But this is another issue.

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! Editing Relations Widgets
Projects
None yet
Development

No branches or pull requests

2 participants