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

New features are not added if attributes are not changed in new feature form dialog #25952

Closed
qgib opened this issue Feb 7, 2018 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms High Priority Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Feb 7, 2018

Author Name: Jadwiga Trojak (@troyaqgis)
Original Redmine Issue: 18056
Affected QGIS version: master
Redmine category:forms


Hi,
I created geopackage layer and added three new fields:

date (type: QDateTime)
date_mod (type: QDateTime)
user (type QString(100))
and then I modified form properties (default values) for this new fields, as follows:
I chose for date field function now(), for date_mod function now() and check option "Apply deafault value on update", and for user field variable @user_full_name.

After then I created new feature and clicked OK button in the form of feature attributes.
Unfortunately after the changes were accepted, the new feature wasn't added.
I discovered that the problem lies in a fid field, which default value is Autogenerate.
The new feature is added if I clear the field using the cross button, and then clicked OK button.
I hope I expressed it clearly.

@qgib
Copy link
Contributor Author

qgib commented Feb 8, 2018

Author Name: Nyall Dawson (@nyalldawson)


  • regression was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Feb 8, 2018

Author Name: Nyall Dawson (@nyalldawson)


The problem is more extensive than that - regardless of the layer, creating a new feature and clicking "OK" without changing any attributes in the dialog will result in the feature being discarded silently.


  • priority_id was changed from Normal to High
  • subject was changed from Problem with autogenarate fid during geopackage editing - QGIS 2.99 to New features are not added if attributes are not changed in new feature form dialog

@qgib
Copy link
Contributor Author

qgib commented Feb 9, 2018

Author Name: Nyall Dawson (@nyalldawson)


Applied in changeset 9da5fd3.


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

@qgib qgib closed this as completed Feb 9, 2018
@qgib
Copy link
Contributor Author

qgib commented Feb 21, 2018

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to fixed/implemented

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Forms Regression Something which used to work, but doesn't anymore 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 High Priority Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant