From 684d76a73885ee8119f7ef611e2ff997c1cdbba0 Mon Sep 17 00:00:00 2001
From: Tom Lutzenberger <t.lutzenberger@adito.de>
Date: Mon, 17 Aug 2020 10:42:37 +0200
Subject: [PATCH] #1062069: Dokument-Preview in Tiles anzeigen

---
 entity/Document_entity/recordcontainers/jdito/contentProcess.js | 2 +-
 neonView/DocumentFilter_view/DocumentFilter_view.aod            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/entity/Document_entity/recordcontainers/jdito/contentProcess.js b/entity/Document_entity/recordcontainers/jdito/contentProcess.js
index ac587aa94d..6481d977a0 100644
--- a/entity/Document_entity/recordcontainers/jdito/contentProcess.js
+++ b/entity/Document_entity/recordcontainers/jdito/contentProcess.js
@@ -22,7 +22,7 @@ if(vars.exists("$param.AssignmentTable_param") &&
     if(vars.exists("$local.idvalues") && vars.get("$local.idvalues"))
         metadata = db.getBinaryMetadataForIds(vars.get("$local.idvalues"), true, alias)
     else
-        metadata = db.getBinaryMetadata(assignmentTable, assignmentName || "", assignmentRowId, false, alias, keyword);    
+        metadata = db.getBinaryMetadata(assignmentTable, assignmentName || "", assignmentRowId, true, alias, keyword);    
 
     // Iterate through found binary data and populate result array    
     for( var i = 0; i < metadata.length; i++) {
diff --git a/neonView/DocumentFilter_view/DocumentFilter_view.aod b/neonView/DocumentFilter_view/DocumentFilter_view.aod
index 3da41e270a..76cd35ba1d 100644
--- a/neonView/DocumentFilter_view/DocumentFilter_view.aod
+++ b/neonView/DocumentFilter_view/DocumentFilter_view.aod
@@ -11,7 +11,7 @@
   <children>
     <tilesViewTemplate>
       <name>Tiles</name>
-      <iconField>ICON</iconField>
+      <iconField>PREVIEW_IMAGE</iconField>
       <titleField>NAME</titleField>
       <subtitleField>TYPE</subtitleField>
       <descriptionField>SIZE</descriptionField>
-- 
GitLab