summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog/en/changelog_2022-06-15.md1
-rw-r--r--changelog/fr/changelog_2023-01-25.md1
-rw-r--r--ishtar_common/static/js/ishtar.js6
3 files changed, 8 insertions, 0 deletions
diff --git a/changelog/en/changelog_2022-06-15.md b/changelog/en/changelog_2022-06-15.md
index cee9450e1..66c5c35ac 100644
--- a/changelog/en/changelog_2022-06-15.md
+++ b/changelog/en/changelog_2022-06-15.md
@@ -50,6 +50,7 @@ v4.0.XX - 2099-12-31
- tables: user, action, IP, routable IP
### Bug fixes ###
+- document table: fix gallery view
- geo sheet:
- do not zoom or select point with no x, y coordinates
- fix 2d point display
diff --git a/changelog/fr/changelog_2023-01-25.md b/changelog/fr/changelog_2023-01-25.md
index 3e02cc0ff..c4abc57c6 100644
--- a/changelog/fr/changelog_2023-01-25.md
+++ b/changelog/fr/changelog_2023-01-25.md
@@ -51,6 +51,7 @@ v4.0.XX - 2099-12-31
- tables RGPD : informations sur utilisateur, action, IP, IP routable
### Corrections de dysfonctionnements ###
+- tableau document : correction de la vue galerie
- fiche géo :
- retrait des fonctions de zoom et de sélection pour les points sans coordonnées x et y
- correction de l'affichage de points 2D
diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js
index ab9e7eb6f..025b05a56 100644
--- a/ishtar_common/static/js/ishtar.js
+++ b/ishtar_common/static/js/ishtar.js
@@ -1294,12 +1294,18 @@ var render_gallery = function(data_table, table_name, nb_select, gallery_id){
var thumb = "";
if ("main_image__thumbnail" in data){
thumb = data["main_image__thumbnail"];
+ } else if ("thumbnail" in data){
+ thumb = data["thumbnail"];
+ if (!thumb.startsWith("media/") && !thumb.startsWith("/media/")) thumb = "/media/" + thumb;
} else {
thumb = static_path + "media/images/empty-image.png";
}
var image = "";
if ("main_image__image" in data){
image = data["main_image__image"];
+ } else if ("image" in data){
+ image = data["image"];
+ if (!image.startsWith("media/") && !image.startsWith("/media/")) image = "/media/" + image;
} else {
image = static_path + "media/images/empty-image.png";
}