https://bugzilla.wikimedia.org/show_bug.cgi?id=47333

--- Comment #7 from Brad Jorsch <bjor...@wikimedia.org> ---
(In reply to mdowdell from comment #6)
> (In reply to Svick from comment #4)
> > (In reply to mdowdell from comment #2)
> > > However, the mere existence of the disablepp parameter removes the PP
> > > report, regardless of whether its set to false, or indeed anything at all
> > 
> > That's the normal behavior for all boolean parameters in the API.
> 
> I would expect it to show the PP report if disablepp was set to false, or
> rather anything that wasn't true. Ideally it should throw an error if it
> wasn't a boolean or what's the point of it being a boolean in the first
> place?

API "boolean" parameters work like checkboxes in HTML forms: If the box is
checked, it sends whatever is defined as the value for the <input>. If the box
is not checked, it sends nothing. So to determine if the checkbox was checked
at the most basic level, you look for "was this parameter provided at all"
without paying any attention to the value provided.

But this is offtopic for this bug report.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to