From 8b05c5e2bda910688dd647a096df8f6b91c8ff76 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 23 Jun 2011 13:33:28 +0800 Subject: [PATCH] MDL-27962 Fixed typo in tablelib preventing columns from being collapsed --- lib/tablelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tablelib.php b/lib/tablelib.php index 4039f9a4313..9c22c9cd7d3 100644 --- a/lib/tablelib.php +++ b/lib/tablelib.php @@ -429,7 +429,7 @@ class flexible_table { isset($this->columns[$showcol])) { $this->sess->collapse[$showcol] = false; - } else if (($hidecol = optional_param($this->request[TABLE_VAR_SHOW], '', PARAM_ALPHANUMEXT)) && + } else if (($hidecol = optional_param($this->request[TABLE_VAR_HIDE], '', PARAM_ALPHANUMEXT)) && isset($this->columns[$hidecol])) { $this->sess->collapse[$hidecol] = true; if (array_key_exists($hidecol, $this->sess->sortby)) { -- 2.36.1