Skip to content

Commit

Permalink
Fix media update
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Dec 19, 2024
1 parent a03b7c0 commit 485af22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions g3w-admin/core/utils/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ def new_value(self, change=False):
'layer_id': self.layer.pk,
'file_name': file_name
}))
else:
if is_media_view:

# Restore to current_feature value
self.feature_properties[field] = current_field_value

if delete_old:
to_delete = '{}/{}'.format(path_to_save, current_file_name)
Expand Down

0 comments on commit 485af22

Please sign in to comment.