diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-07 15:49:46 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-07 15:49:46 +0100 |
commit | 9db820c7d0d47c6116a977b2e4c57f6d36ff3b46 (patch) | |
tree | 4d18e63e8a18596adcfae7a798dfa1a7c3382b47 /archaeological_finds/templates | |
parent | 2f0bfdd8283b7191789de1032f73f14ebb2df337 (diff) | |
download | Ishtar-9db820c7d0d47c6116a977b2e4c57f6d36ff3b46.tar.bz2 Ishtar-9db820c7d0d47c6116a977b2e4c57f6d36ff3b46.zip |
Fix display of sheet find when no permission is defined
Diffstat (limited to 'archaeological_finds/templates')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index ee0e67f2e..7171c3deb 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -15,6 +15,10 @@ </div> {% endif %} +{# trick to set to null non existing variable #} +{% with permission_view_document=permission_view_document %} +{% with permission_view_own_document=permission_view_own_document %} + {% with display_identification=item.integrities.count|or_:item.remarkabilities.count|or_:item.conservatory_state|or_:item.conservatory_comment|or_:item.alterations.count|or_:item.alteration_causes.count|or_:item.preservation_to_considers.count|or_:item.appraisal_date|or_:item.treatment_emergency|or_:item.insurance_value|or_:item.estimated_value|or_:item.datings.count|or_:item.dating_comment %} {% with display_warehouse_treatments=item.container|or_:item.container_ref|or_:item.upstream_treatment|or_:item.downstream_treatment|or_:item.treatments.count %} {% with can_view_documents=permission_view_own_document|or_:permission_view_document %} @@ -391,7 +395,7 @@ {% endif %} </div> -{% endwith %}{% endwith %}{% endwith %}{% endwith %} +{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %} {% endblock %} |