Feature request #17627
Field Calculator: None selected should give none modified
|Pull Request or Patch supplied:||No||Resolution:|
|Easy fix?:||No||Copied to github as #:||25524|
Currently, with the field calculator, if no entity is selected, all will be changed according to the user's requests. This is not a problem if it is the desire of the operator but it can be very devastating in a database if there is an omission of selection. It is so easy to make a voluntary "Select All" before using the field calculator that the possibility of changing everything without selecting should not be offered.
#2 Updated by Marc-André Saia about 3 years ago
In my opinion, this is not enough. This can happen if you zoom in on a very small area. In addition, the consequences can be very unfortunate, even with regular backups of the database. This has happened to me lately and I think it's a pretty serious problem to make it necessary to bring more security to the use of the field calculator. Many times I was able to backtrack but once no and it is once too much.
#4 Updated by Marc-André Saia almost 3 years ago
- Assignee set to Victor Olaya
Dear Qgis team,
Mr. Giovanni Manghi recommended that I share my concerns with a wider audience.
So I'm assigning Mr. Victor Olaya, who is in charge of the toolboxes.
I also added the observers I think are relevant to this topic.
#6 Updated by Marc-André Saia almost 3 years ago
- File Qgis_boulier.jpg added
The problem persists in version 3.0 :(
It seems to me so simple that the box "Update only the 0 selected entities" is not grayed out and checked by default. In this case, no data would be modified. The worst thing that could happen is that the user has to start over by unchecking the box.
Currently, it is very easy to destroy the data of a complete field, if we forget to select at least one entity to update.