Steps to replicate the issue (include links if applicable):
- go to https://www.wikifunctions.org/view/en/Z13726
- click on + to create a new test and arrive at https://www.wikifunctions.org/w/index.php?title=Special:CreateObject&uselang=en&zid=Z20&Z20K1=Z13726
- open the call and enter a number for which to create the test, e.g. 9
- open the result validation and choose "List equality"
- enter the values for the list, but forget to enter the "element equality function"
- click on Publish
What happens?:
The "element equality function" argument gets stored as an empty string ""
What should have happened instead?:
We shouldn't have published that, but raised an error that the argument is missing / has the wrong type.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Could probably be caught with better validation / type checking.
Geno's comments: This is an issue, the field requires a referenced function, but there's no validation before submitting, so the empty reference "Z889K3":{"Z1K1": "Z9", "Z9K1": ""} when canonicalized is transformed into "Z889K3":"" , which then is interpreted as a string.