Bug report #14732
@user_full_name and @user_account_name causes Crashes
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | Andreas Neumann | ||
Category: | PyQGIS Console | ||
Affected QGIS version: | 2.14.1 | Regression?: | No |
Operating System: | Windows | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | Yes | Copied to github as #: | 22690 |
Description
I am currently working on a QGIS 2.14 and i am trying to us the built in variables to populate the user field with the system name of the user logging making the edit on the feature attribute. I have used the UUID generator and it has proved helpful but at every time I try to use either of @user_full_name or @user_account_name I get a crash dump.
We are currently working on an open source migration meaning that we are moving our products from proprietary to open source and this functionality is a very important one for us because we work as a team and we need to track who is making changes to our data within the organization.
Thanks ahead,
Ayodele Adeyemo
Associated revisions
Fix crash in relation reference widget (fix #14732)
Fix crash in relation reference widget (fix #14732)
(cherry-picked from eed4ee)
History
#1 Updated by Nyall Dawson over 8 years ago
- Status changed from Open to Closed
Fixed in changeset eed4ee6411ef3adda8d6c83b32172c0ef9a9c866.
#2 Updated by Nyall Dawson over 8 years ago
I've fixed the crash, but please note that this WILL NOT do what you are trying to do. The relation reference widget expression is just a formatting change, it will NOT save these values to the database. In addition it will always show the current user for ALL features.
What you are looking for is #12492 - but that's not implemented yet.
#3 Updated by Ayodele Adeyemo over 8 years ago
- % Done changed from 0 to 10
- Status changed from Closed to Reopened
Nyall Dawson wrote:
I've fixed the crash, but please note that this WILL NOT do what you are trying to do. The relation reference widget expression is just a formatting change, it will NOT save these values to the database. In addition it will always show the current user for ALL features.
What you are looking for is #12492 - but that's not implemented yet.
Please i dont understand what you are saying about it not saving into the the database( Do you mean the table?). Basically what I am trying to do is to do something like what the UUID generator does for its assigned field with the @user_full_name. Not necessarily through the relation reference widget expression. I will appreciate any help on this please.
Thanks for the support.
#4 Updated by Nyall Dawson over 8 years ago
- Status changed from Reopened to Closed
Fixed in changeset c7998127abb8efc456a2c8c3282fe9f04cebeef3.