From: Kaldari Date: Thu, 7 Mar 2013 22:35:48 +0000 (-0800) Subject: Adding validation for checkmatrix (same as for multiselect) X-Git-Tag: 1.31.0-rc.0~20430 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=bc5c6a6177efc2e96b2348c6a5f54a46ceb40d14;p=lhc%2Fweb%2Fwiklou.git Adding validation for checkmatrix (same as for multiselect) Change-Id: I825ec8a6094405cf7d74597a0eeda3898981763b --- 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;