Author: info
Description:
Even if you enable the ~ comparator in $smwgQComparators in SMW_Settings.php,
querying a many-valued property for ~*partial* doesn't work.
For example, using ontoworld.org's [[Property:Employment]] and [[Einstein]] article
[[Employment::?;~?atent*;?;?]]
doesn't find Einstein's "patent examiner" job.
The reason this doesn't work is that SMW_DV_NAry.php's prepareValue method doesn't match SMW_QueryProcessor.php's prepareValue method. The latter compares $smwgQComparators and checks for case '~', the former hardcodes.
After copying code, the above example works in SMW 1.0.
Ideally the common code should be in a common function, but at least the code in each place should comment
// The same code is in SMW_DV_NAry.php's prepareValue()
and vice-versa.
Version: unspecified
Severity: normal