Skip to content

Commit

Permalink
Fix for annotation forms (#2172)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Feb 2, 2024
1 parent b8a8fcd commit 06cd788
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
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.1.0'
VERSION = '8.1.1'
DATABASE_VERSION = DATABASE_VERSIONS[0]
DEMO_MODE = False # If activated some options are disabled, login is prefilled
DEBUG = False
Expand Down
2 changes: 2 additions & 0 deletions openatlas/forms/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,8 @@ def get_table_content(
# Hackish (mis)use of filter_ids to get table field for annotations
table = Table(['name', 'class', 'description'])
for item in Entity.get_by_id(filter_ids[0]).get_linked_entities('P67'):
if selected_data and item.id == int(selected_data):
selection = item.name # pragma: no cover
table.rows.append([
format_name_and_aliases(item, 'annotated_entity'),
uc_first(item.class_.name),
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.1.1': ['2024-02-02', {
'fix': {
'2172': 'Minor issue at annotation update form'}}],
'8.1.0': ['2024-01-27', {
'feature': {
'1910': 'IIIF: Image annotation',
Expand Down

0 comments on commit 06cd788

Please sign in to comment.