1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-19 21:10:49 +01:00

Bugfix categorie allegati

This commit is contained in:
Thomas Zilio 2018-07-04 13:07:30 +02:00
parent cfbe83e0cd
commit f533383a02

View File

@ -58,6 +58,9 @@ class FileManager implements ManagerInterface
foreach ($categories as $category) {
$category = $category['category'];
$rs = $dbo->fetchArray('SELECT * FROM `zz_files` WHERE `category`'.(!empty($category) ? '= '.prepare($category) : 'IS NULL').' AND `id_record` = '.prepare($options['id_record']).' AND '.$where);
if (!empty($rs)) {
$result .= '
<div class="box box-success">
<div class="box-header with-border">
@ -76,8 +79,6 @@ class FileManager implements ManagerInterface
<th width="15%" class="text-center">'.tr('Opzioni').'</th>
</tr>';
$rs = $dbo->fetchArray('SELECT * FROM `zz_files` WHERE `category`'.(!empty($category) ? '= '.prepare($category) : 'IS NULL').' AND `id_record` = '.prepare($options['id_record']).' AND '.$where);
foreach ($rs as $r) {
$result .= '
<tr>
@ -143,6 +144,7 @@ class FileManager implements ManagerInterface
<div class="clearfix"></div>
<br>';
}
}
// Form per l'upload di un nuovo file
if (!$options['readonly']) {