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

Attributes forms and problem with setting variables as defaults (QGIS 3.4.1) #28199

Closed
qgib opened this issue Nov 6, 2018 · 6 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers Forms Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Nov 6, 2018

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


I have geopackage layer with two fields: user and data_mod. I'd like to set default value for user field with @user_account_name variable (widget type: Text Edit) and for data_mod field with function now() (widget type: Date/Time). In the first case, after clicking Apply button, this settings aren't save, and the default value changes automatically to 'NULL'. In the second case, default value changes automatically to exact date, not date from variable now().

@qgib
Copy link
Contributor Author

qgib commented Nov 6, 2018

Author Name: Giovanni Manghi (@gioman)


Works as expected on 2.18 (I'm not sure @user_account_name is available on 2.18)?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Nov 6, 2018

Author Name: Jadwiga Trojak (@troyaqgis)


Yes, in QGIS 2.18.25 it works.

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2018

Author Name: Giovanni Manghi (@gioman)


  • regression was changed from 0 to 1
  • priority_id was changed from Normal to High
  • status_id was changed from Feedback to Open

@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
@Saijin-Naib
Copy link

Can confirm on QGIS 3.10.0 under Windows 10 x64.

Setting:
image

Evaluation:
image

@nyalldawson
Copy link
Collaborator

I can't reproduce this. Is it still an issue in 3.16?

@nyalldawson nyalldawson added the Feedback Waiting on the submitter for answers label Jun 8, 2021
@Saijin-Naib
Copy link

Seems to be fixed in:

QGIS version
3.18.3-Zürich
QGIS code revision
735cc85
Compiled against Qt
5.15.2
Running against Qt
5.15.2
Compiled against GDAL/OGR
3.3.0
Running against GDAL/OGR
3.3.0
Compiled against GEOS
3.9.1-CAPI-1.14.2
Running against GEOS
3.9.1-CAPI-1.14.2
Compiled against SQLite
3.35.2
Running against SQLite
3.35.2
Compiled against PDAL
2.2.0
Running against PDAL
2.3.0 (git-version: eac774)
PostgreSQL Client Version
13.0
SpatiaLite Version
5.0.1
QWT Version
6.1.3
QScintilla2 Version
2.11.5
Compiled against PROJ
8.0.1
Running against PROJ
Rel. 8.0.1, March 5th, 2021
OS Version
Windows 10 Version 2009
Active python plugins
CalculateGeometry;
cartography_tools;
LAStools;
MemoryLayerSaver;
pdaltools-master;
processing_fusion;
qgis-maptiler-plugin;
qgis2web;
qgissprp;
slyr;
zoom_level;
db_manager;
MetaSearch;
processing

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! Feedback Waiting on the submitter for answers Forms Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

4 participants