Skip to content

Commit

Permalink
Delete organigram in model before exchanging
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschuppi81 committed Nov 30, 2023
1 parent a914aa7 commit febc6f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/onegov/agency/forms/agency.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ def update_model(self, model):
del model.organigram
if self.organigram.action == 'replace':
if self.organigram.data:
# with this the new file gets a new storage id and therefore
# a browser refresh is not required as the html changes
del model.organigram
model.organigram_file = self.organigram.file
model.coordinates = self.coordinates.data
if hasattr(self, 'access'):
Expand Down

0 comments on commit febc6f7

Please sign in to comment.