MDL-27962 Fixed typo in tablelib preventing columns from being collapsed
authorSam Hemelryk <sam@moodle.com>
Thu, 23 Jun 2011 05:33:28 +0000 (13:33 +0800)
committerSam Hemelryk <sam@moodle.com>
Thu, 23 Jun 2011 05:33:28 +0000 (13:33 +0800)
lib/tablelib.php

index 4039f9a..9c22c9c 100644 (file)
@@ -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)) {