Browse Source

[FIX] correct testing of nopreview setting

experimental
Georgi Hristov 2 years ago
parent
commit
df8d34bc90
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/Utils/RecordBrowser/RecordBrowserCommon_0.php

+ 1
- 1
modules/Utils/RecordBrowser/RecordBrowserCommon_0.php View File

@@ -3574,7 +3574,7 @@ class Utils_RecordBrowserCommon extends ModuleCommon {
if(!empty($fileStorageId)) {
$actions = $fileHandler->getActionUrlsRB($fileStorageId, $tab, $r['id'], $desc['id']);
$labels[]= Utils_FileStorageCommon::get_file_label($fileStorageId, $nolink, true, $actions);
if (!$desc['nopreview']?? false)
if (!($desc['nopreview']?? false))
$inline_nodes[]= Utils_FileStorageCommon::get_file_inline_node($fileStorageId, $actions, $desc['max-width']?? '200px');
}
}


Loading…
Cancel
Save