mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fix showing all modules on monitors view on firt load
This commit is contained in:
parent
f56b6435d7
commit
70291758c8
@ -162,7 +162,7 @@ $autosearch = false;
|
|||||||
// It is validated if it receives parameters different from those it has by default.
|
// It is validated if it receives parameters different from those it has by default.
|
||||||
if ($ag_freestring !== '' || $moduletype !== '' || $datatype !== ''
|
if ($ag_freestring !== '' || $moduletype !== '' || $datatype !== ''
|
||||||
|| $ag_modulename !== '' || $refr !== 0 || $offset !== 0 || $status !== 4
|
|| $ag_modulename !== '' || $refr !== 0 || $offset !== 0 || $status !== 4
|
||||||
|| $modulegroup !== -1 || $tag_filter !== 0 || $sortField !== ''
|
|| $modulegroup !== -1 || (bool) array_filter($tag_filter) !== false || $sortField !== ''
|
||||||
|| $sort !== 'none' || $id_module !== 0 || $module_option !== 1
|
|| $sort !== 'none' || $id_module !== 0 || $module_option !== 1
|
||||||
|| $min_hours_status !== ''
|
|| $min_hours_status !== ''
|
||||||
) {
|
) {
|
||||||
@ -276,6 +276,7 @@ if ($loaded_filter['id_filter'] > 0) {
|
|||||||
if (is_array($tag_filter) === false) {
|
if (is_array($tag_filter) === false) {
|
||||||
$tag_filter = json_decode($tag_filter, true);
|
$tag_filter = json_decode($tag_filter, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($tag_filter === '') {
|
if ($tag_filter === '') {
|
||||||
$tag_filter = [0 => 0];
|
$tag_filter = [0 => 0];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user