When setting params on the query object, setting a values like PHP TRUE for 'fl' or 'spellcheck' results in an error.

We should normalize the params for better DX so a boolean is automatically converted to its string representation.

Comments

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new1.52 KB
pwolanin’s picture

StatusFileSize
new1.52 KB

fix code comment and rename variable.

pwolanin’s picture

StatusFileSize
new1.53 KB

missed one. ignore #2.

pwolanin’s picture

StatusFileSize
new2.4 KB

With small added unit test assertions.

pwolanin’s picture

Title: Boolean values may fail for parameters like hl » Normalize boolean and other values for parameters like hl
Status: Needs review » Fixed

applied #4 to 7.x and 6.x-3.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.