Bug report #10437

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

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

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


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.:

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

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


#1 Updated by Jürgen Fischer over 9 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