r87463 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87462‎ | r87463 | r87464 >
Date:22:26, 4 May 2011
Author:tparscal
Status:ok
Tags:
Comment:
Lowered the minimum value for the bucket param of ApiArticleFeedback to 0, fixing an issue where the state of ArticleFeedbackOptions bucket was not being captured because 0s were being clamped to 1s.
Modified paths:
  • /trunk/extensions/ArticleFeedback/api/ApiArticleFeedback.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedback/api/ApiArticleFeedback.php
@@ -360,7 +360,7 @@
361361 ApiBase::PARAM_TYPE => 'integer',
362362 ApiBase::PARAM_REQUIRED => true,
363363 ApiBase::PARAM_ISMULTI => false,
364 - ApiBase::PARAM_MIN => 1
 364+ ApiBase::PARAM_MIN => 0
365365 ),
366366 'expertise' => array(
367367 ApiBase::PARAM_TYPE => 'string',

Status & tagging log