Bug report #20673
QGIS3.4 Organize columns, data integrity compromised
|Affected QGIS version:||3.5(master)||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||28493|
When you use 'Organize columns' and 'move selection to top' in atribute table you can crash your data integrity.
To reproduce this bug you will need a layer with more than 14 columns and more than
45 rows. That is the specification of our smaler table. We have tried with
a smaller table and we don't get any error.
1 - pick up the atribute table (postgres with geometry or shapefile),
right click in a column name and select 'Organize columns...'
2 - Reorder the columns. Thinking in column position like a list, try a
sequence that bring to initial positions the end elements. In a example
3 - Back to the table, start edition.
4 - Click at QGIS numerator of feature in table. this will turn editable the cell of
the column 14 (remind the example above),
5 - Chose in menu table 'move selection to top'
6 - look for the atribute's of column 14, it will apear in another column
of the same selected object.
#8 Updated by Soares SOares almost 2 years ago
- File sample_data.zip added
Hello Alessandro. At the moment I can't make a video, but there is a project with a shapefile.
The columns already have been organized, so after open the project:
- Open attribute table;
- Start edition;
- Select any feature (click on QGIS's numerator in table);
- Move selection to top.
The content atribute in selected cell (col_18) will be sended to 'col_11'