Bug report #10437

When removing a vector field alias it isn't removed from qgs project

Added by Giovanni Allegri almost 10 years ago. Updated over 9 years ago.

Status:Closed
Priority:Low
Assignee:-
Category:Vectors
Affected QGIS version:2.2.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:18851

Description

Alias fields elements in .qgs projects aren't removed when alias are unset (= made blank, empty string).
An empty "name" attribute is kept for that field. E.g.:

<aliases>
   <alias field="image" index="2" name=""/>
</aliases>

I suggest to remove the element when the alias is empty.

Associated revisions

Revision c3bd82aa
Added by Nathan Woodrow over 9 years ago

Merge pull request #1481 from giohappy/alias_remove_when_empty

Remove alias from vector layer if it's an empty string. Fix #10437

History

#1 Updated by Jürgen Fischer almost 10 years ago

  • Category set to Vectors

#3 Updated by Nathan Woodrow over 9 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF