From bc5c6a6177efc2e96b2348c6a5f54a46ceb40d14 Mon Sep 17 00:00:00 2001 From: Kaldari Date: Thu, 7 Mar 2013 14:35:48 -0800 Subject: [PATCH] Adding validation for checkmatrix (same as for multiselect) Change-Id: I825ec8a6094405cf7d74597a0eeda3898981763b --- includes/api/ApiOptions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiOptions.php b/includes/api/ApiOptions.php index f626a0fc2a..8c996a267e 100644 --- a/includes/api/ApiOptions.php +++ b/includes/api/ApiOptions.php @@ -80,7 +80,8 @@ class ApiOptions extends ApiBase { $validation = $field->validate( $value, $user->getOptions() ); break; case 'registered-multiselect': - // A key for a multiselect option. + case 'registered-checkmatrix': + // A key for a multiselect or checkmatrix option. $validation = true; $value = $value !== null ? (bool) $value : null; break; -- 2.20.1