diff --git a/config.py b/config.py index 447f31431..e10bf328a 100644 --- a/config.py +++ b/config.py @@ -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 diff --git a/openatlas/util/changelog.py b/openatlas/util/changelog.py index d39e8c23f..a014bd73e 100644 --- a/openatlas/util/changelog.py +++ b/openatlas/util/changelog.py @@ -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'}}], diff --git a/openatlas/views/hierarchy.py b/openatlas/views/hierarchy.py index 9f65ef813..e3890b541 100644 --- a/openatlas/views/hierarchy.py +++ b/openatlas/views/hierarchy.py @@ -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: