Skip to content

Commit

Permalink
Fix for #2155: enabling disabled checkboxes again
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Jan 16, 2024
1 parent b592087 commit ea605aa
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from config.database_versions import DATABASE_VERSIONS

VERSION = '8.0.0'
VERSION = '8.0.1'
DATABASE_VERSION = DATABASE_VERSIONS[0]
DEMO_MODE = False # If activated some options are disabled, login is prefilled
DEBUG = False
Expand Down
3 changes: 3 additions & 0 deletions install/upgrade/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ then run the database upgrade script, then restart Apache:
sudo python3 install/upgrade/database_upgrade.py
sudo service apache2 restart

### 8.0.0 to 8.0.1
A code base update (e.g. with git pull) and a webserver restart is sufficient.

### 7.17.x to 8.0.0
This is a major upgrade which utilizes newer versions of underlying software.
Please consult the install.md about installation. In case you are using a
Expand Down
1 change: 0 additions & 1 deletion openatlas/forms/base_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ def additional_fields(self) -> dict[str, Any]:
return {
'classes': SelectMultipleField(
_('classes'),
render_kw={'disabled': True},
description=_('tooltip hierarchy forms'),
choices=Type.get_class_choices(self.entity),
option_widget=widgets.CheckboxInput(),
Expand Down
1 change: 0 additions & 1 deletion openatlas/forms/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,6 @@ def additional_fields(self) -> dict[str, Any]:
precision_id: TreeField(precision_id),
'classes': SelectMultipleField(
_('classes'),
render_kw={'disabled': True},
choices=choices,
option_widget=widgets.CheckboxInput(),
widget=widgets.ListWidget(prefix_label=False))
Expand Down
3 changes: 3 additions & 0 deletions openatlas/views/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def index_changelog() -> str:


versions = {
'8.0.1': ['2024-01-16', {
'fix': {
'2155': 'Checkboxes in checkbox groups are disabled'}}],
'8.0.0': ['2024-01-01', {
'feature': {
'2038': 'Update OpenAtlas software to Debian bookworm',
Expand Down
2 changes: 0 additions & 2 deletions openatlas/views/vocabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,12 @@ def vocabulary_import_view(category: str, id_: str) -> Union[str, Response]:
class ImportVocabsHierarchyForm(FlaskForm):
concepts = SelectMultipleField(
_('top concepts') if category == 'hierarchy' else _('groups'),
render_kw={'disabled': True},
choices=fetch_top_concept_details(id_) if category == 'hierarchy'
else fetch_top_group_details(id_),
option_widget=widgets.CheckboxInput(),
widget=widgets.ListWidget(prefix_label=False))
classes = SelectMultipleField(
_('classes'),
render_kw={'disabled': True},
description=_('tooltip hierarchy forms'),
choices=Type.get_class_choices(),
option_widget=widgets.CheckboxInput(),
Expand Down

0 comments on commit ea605aa

Please sign in to comment.