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 | 8bbba5a30505ceec52b6192dd155f59ab1a8b7c4 (patch) | |
tree | 4d18e63e8a18596adcfae7a798dfa1a7c3382b47 /archaeological_finds | |
parent | ca45976b81462ee416ba9d3128a1a77d77425cae (diff) | |
download | Ishtar-8bbba5a30505ceec52b6192dd155f59ab1a8b7c4.tar.bz2 Ishtar-8bbba5a30505ceec52b6192dd155f59ab1a8b7c4.zip |
Fix display of sheet find when no permission is defined
Diffstat (limited to 'archaeological_finds')
-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 %} |