Skip to content

Commit

Permalink
Fix for multiple flag gets lost when updating a hierarchy (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Jan 20, 2022
1 parent 86aa3b9 commit a801eb8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from openatlas import app

VERSION = '7.0.1'
VERSION = '7.0.2'
DATABASE_VERSION = '6.6.0'
DEMO_MODE = False # If activated some options are disabled, login is pre filled
IS_UNIT_TEST = False
Expand Down
3 changes: 3 additions & 0 deletions openatlas/util/changelog.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
class Changelog:

versions = {
'7.0.2': ['2022-01-20', {
'fix': {
'1632': 'Multiple flag gets lost when updating a hierarchy'}}],
'7.0.1': ['2022-01-05', {
'fix': {
'1627': 'Error when creating a source from file view'}}],
Expand Down
10 changes: 6 additions & 4 deletions openatlas/views/hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,12 @@ def save(
type_: Optional[Type] = None,
category: Optional[str] = None) -> Optional[Type]:
multiple = False
if category == 'value' or (
hasattr(form, 'multiple')
and form.multiple
and form.multiple.data):
if category == 'value' \
or (type_ and type_.multiple) \
or (
hasattr(form, 'multiple')
and form.multiple
and form.multiple.data):
multiple = True
Transaction.begin()
try:
Expand Down

0 comments on commit a801eb8

Please sign in to comment.