Bug report #15976

Attribute table: rows are switching when adding attributes

Added by Jérôme Guélat over 7 years ago. Updated almost 7 years ago.

Status:Closed
Priority:High
Assignee:Luigi Pirelli
Category:Attribute table
Affected QGIS version:2.18.4 Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:23892

Description

This doesn't happen in 2.14.9 and is thus a regression. Here's how to reproduce the bug:

1. Create a new Shapefile with a single column named id (this also works with GeoPackage and other formats)
2. Digitize a few features
3. Open the attribute table, click in the first cell, write a number and press Enter

The position of the row (and hence the row number) will change. This also happens for the other rows. This behavior is extremely confusing since it's hard to know which feature you're currently editing.

attribute_table_218.PNG (9.88 KB) Saber Razmjooei, 2016-12-15 07:43 AM


Related issues

Related to QGIS Application - Bug report #15974: Rows of the attribute table seem to be duplicated when sa... Closed 2016-12-12

Associated revisions

Revision f1383e24
Added by Luigi Pirelli almost 7 years ago

Avoid row sorts during attribute editing in AttributeTable Fix #15976

Revision 6c84b6ea
Added by Luigi Pirelli almost 7 years ago

Avoid row sorts during attribute editing in AttributeTable Fix #15976

History

#1 Updated by Saber Razmjooei over 7 years ago

Confirmed.
In my case, it duplicates the number of features in the attribute table. See attached with 3 points in the canvas and 6 rows in the attribute table.

#2 Updated by Jérôme Guélat over 7 years ago

In my case the duplication only happens with shapefiles, that's why I created another ticket (#15974)

#3 Updated by Giovanni Manghi about 7 years ago

  • Affected QGIS version changed from 2.18.0 to 2.18.4
  • Target version set to Version 2.18

Confirmed also on 2.18.4

#4 Updated by Luigi Pirelli about 7 years ago

the error should be related with that in #15803

probably the effect still remain in qgis3

the initial sort is not applied => applied only when adding/removing column or apply a column sorting explicitly.

#5 Updated by Ger CO about 7 years ago

Same here + double or missing features after editing. Only happens with shapefiles (I have tested against geopackage).
I am on win 7, 64 bit, german setup. For shapefiles, the attribute table is not usable for me.

#6 Updated by Giovanni Manghi almost 7 years ago

  • Regression? set to Yes

#7 Updated by Giovanni Manghi almost 7 years ago

  • Priority changed from Severe/Regression to High

#8 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No

#9 Updated by Luigi Pirelli almost 7 years ago

  • Description updated (diff)

hi Ger CO

yes, feature duplication is already reported in #15974

#10 Updated by Giovanni Manghi almost 7 years ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

#11 Updated by Giovanni Manghi almost 7 years ago

  • Resolution deleted (duplicate)
  • Status changed from Closed to Open

#12 Updated by Luigi Pirelli almost 7 years ago

  • Status changed from Open to In Progress
  • Pull Request or Patch supplied changed from No to Yes

proposed fix for this regression issue

https://github.com/qgis/QGIS/pull/4461

#13 Updated by Luigi Pirelli almost 7 years ago

  • Assignee set to Luigi Pirelli

#15 Updated by Jürgen Fischer almost 7 years ago

  • Related to Bug report #15974: Rows of the attribute table seem to be duplicated when saving edits in a shapefile added

#16 Updated by Luigi Pirelli almost 7 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

#17 Updated by Luigi Pirelli almost 7 years ago

wait some days to backport in 2.18

Also available in: Atom PDF