Kaldari has submitted this change and it was merged.
Change subject: Adding validation for checkmatrix (same as for multiselect)
......................................................................
Adding validation for checkmatrix (same as for multiselect)
Change-Id: I825ec8a6094405cf7d74597a0eeda3898981763b
---
M includes/api/ApiOptions.php
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
Kaldari: Verified; Looks good to me, approved
jenkins-bot: Checked
diff --git a/includes/api/ApiOptions.php b/includes/api/ApiOptions.php
index f626a0f..8c996a2 100644
--- a/includes/api/ApiOptions.php
+++ b/includes/api/ApiOptions.php
@@ -80,7 +80,8 @@
$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;
--
To view, visit https://gerrit.wikimedia.org/r/52714
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I825ec8a6094405cf7d74597a0eeda3898981763b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>
Gerrit-Reviewer: Kaldari <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits