From 24a1dfbc2e4064fa93ccf4f64984219718fa279e Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 11 Oct 2022 17:13:19 -0600 Subject: [PATCH] Infolog: Fix double row load if default filter preference is none 'none' was not a valid option and was "fixed", triggering another load. --- infolog/inc/class.infolog_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 2ba951cb6e..a8cc627a9b 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -903,7 +903,7 @@ class infolog_ui if (isset($_GET['filter']) && $_GET['filter'] != 'default' || !isset($values['nm']['filter']) && !$this->called_by) { $values['nm']['filter'] = $_GET['filter'] && $_GET['filter'] != 'default' ? $_GET['filter'] : - $this->prefs['defaultFilter']; + ($this->prefs['defaultFilter'] == 'none' ? '' : $this->prefs['defaultFilter']); } if (!isset($values['nm']['order']) || !$values['nm']['order']) {