mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-21 14:00:53 +01:00
Bugfix categorie allegati
This commit is contained in:
parent
cfbe83e0cd
commit
f533383a02
@ -58,6 +58,9 @@ class FileManager implements ManagerInterface
|
|||||||
foreach ($categories as $category) {
|
foreach ($categories as $category) {
|
||||||
$category = $category['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 .= '
|
$result .= '
|
||||||
<div class="box box-success">
|
<div class="box box-success">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
@ -76,8 +79,6 @@ class FileManager implements ManagerInterface
|
|||||||
<th width="15%" class="text-center">'.tr('Opzioni').'</th>
|
<th width="15%" class="text-center">'.tr('Opzioni').'</th>
|
||||||
</tr>';
|
</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) {
|
foreach ($rs as $r) {
|
||||||
$result .= '
|
$result .= '
|
||||||
<tr>
|
<tr>
|
||||||
@ -143,6 +144,7 @@ class FileManager implements ManagerInterface
|
|||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
<br>';
|
<br>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Form per l'upload di un nuovo file
|
// Form per l'upload di un nuovo file
|
||||||
if (!$options['readonly']) {
|
if (!$options['readonly']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user