summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-06-03 16:26:02 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-08 09:59:31 +0200
commit3633afff5b517170cae0889567c666f5a0b1df6e (patch)
treed10fe7bee90336f5a4111ec3b572ee377e431ba9
parent2696c79b6e4110e0aefc92098fc5d28787b13b90 (diff)
downloadIshtar-3633afff5b517170cae0889567c666f5a0b1df6e.tar.bz2
Ishtar-3633afff5b517170cae0889567c666f5a0b1df6e.zip
Import delete: do not crash when no SLUG is available for an attached item
-rw-r--r--CHANGES-DEV.md1
-rw-r--r--ishtar_common/templates/ishtar/import_delete.html2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES-DEV.md b/CHANGES-DEV.md
index 48fbd3b59..e7d2a1cd5 100644
--- a/CHANGES-DEV.md
+++ b/CHANGES-DEV.md
@@ -44,4 +44,5 @@ Ishtar develop changelog v3.2
- Geo: use own precise multipolygone centroid before parent precise point
- Many to one treatment: fix attribute conservation
- Sheet: silently fails when missing graph relations image is missing
+- Import delete: do not crash when no SLUG is available for an attached item
diff --git a/ishtar_common/templates/ishtar/import_delete.html b/ishtar_common/templates/ishtar/import_delete.html
index 4844d89d8..db3df8fe4 100644
--- a/ishtar_common/templates/ishtar/import_delete.html
+++ b/ishtar_common/templates/ishtar/import_delete.html
@@ -28,12 +28,14 @@
{% else %}
<hr>
{% endifchanged %}
+ {% if imported.SLUG %}
{% url "show-"|add:imported.SLUG imported.pk "" as current_url %}
{% if current_url %}
<a class="display_details_inline" href="#" onclick='load_window("{% url "show-"|add:imported.SLUG imported.pk "" %}")'>
<i class="fa fa-info-circle" aria-hidden="true"></i>
</a>
{% endif %}
+ {% endif %}
{{ imported }}
{% endfor %}
</div>