Followup I4049b666: "Removing prefix exception for HTMLCheckMatrix"
authorbsitu <bsitu@wikimedia.org>
Tue, 5 Aug 2014 21:23:58 +0000 (14:23 -0700)
committerLegoktm <legoktm.wikipedia@gmail.com>
Thu, 7 Aug 2014 22:02:55 +0000 (22:02 +0000)
Change I4049b666 changed the way Preferences combines the prefix with
the row and column for HTMLCheckMatrix, but did not adjust the
corresponding code in User::getOptionFromUser().

Bug: 69146
Change-Id: I69ed9c875443ba44d1a5e12e51165ebf8d6d6a06

includes/User.php

index fe41187..7e846ad 100644 (file)
@@ -2733,7 +2733,7 @@ class User implements IDBAccessObject {
 
                                foreach ( $columns as $column ) {
                                        foreach ( $rows as $row ) {
-                                               $checkmatrixOptions["$prefix-$column-$row"] = true;
+                                               $checkmatrixOptions["$prefix$column-$row"] = true;
                                        }
                                }