Skip to content

Commit

Permalink
Export only fields that are currently present
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed May 26, 2021
1 parent 4278f43 commit a13ca8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qfieldsync/core/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ def visible_fields_names(self, items = None):
if hasattr(item, 'children'):
result += self.visible_fields_names(item.children())
elif isinstance(item, QgsAttributeEditorField):
result.append(fields.at(item.idx()).name())
if item.idx() >= 0:
result.append(fields.at(item.idx()).name())

return result

0 comments on commit a13ca8d

Please sign in to comment.