diff options
| -rw-r--r-- | CHANGES.md | 7 | ||||
| -rw-r--r-- | ishtar_common/templatetags/window_field.py | 5 | 
2 files changed, 12 insertions, 0 deletions
diff --git a/CHANGES.md b/CHANGES.md index 0b1ed1249..cc4cb3d00 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,13 @@ date: 2023-01-12  Ishtar changelog  ================ +### Bug fixes ### +- Syndication: +  - sheet - fix set default permissions +  - admin ApiSearchModel - fix exporter filter for Find +  - sheet - fix display detail of a dict (display associated label) + +  v4.0.33 - 2023-01-12  -------------------- diff --git a/ishtar_common/templatetags/window_field.py b/ishtar_common/templatetags/window_field.py index fcd7d740e..8a9b5fa65 100644 --- a/ishtar_common/templatetags/window_field.py +++ b/ishtar_common/templatetags/window_field.py @@ -159,6 +159,11 @@ def field_flex_multiple_full(caption, data, small=False):  @register.inclusion_tag('ishtar/blocks/window_field_detail.html',                          takes_context=True)  def field_detail(context, caption, item, li=False, size=None): +    if isinstance(item, dict): +        for k in ("cached_label", "label", "common_name"): +            if k in item: +                item = item[k] +                break      return {'caption': caption, 'item': item,              'link': link_to_window(item, context),              'li': li, 'size': size}  | 
