#5480 - Rewrite do_lang and do_lang_tempcode to not ignore params when previous params are null
| Identifier | #5480 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Rewrite do_lang and do_lang_tempcode to not ignore params when previous params are null |
| Status | Open |
| Tags |
Roadmap: Over the horizon (custom) |
| Handling member | Deleted |
| Addon | core |
| Description | In do_lang:
- If param 1 is null, param 2 and 3 is ignored - if param 2 is null, param 3 is ignored Rewrite the function to not do this. Treat null as empty string, perhaps, when passing in to the language. In do_lang_tempcode: I think for every null parameter, future parameters are mapped to previous parameters. For example, if param 1 is null, then 2 becomes 1 and 3 becomes 2, etc. Rewrite do_lang_tempcode to not do this; treat null as empty string. |
| Steps to reproduce | |
| Additional information | This is a consistency fix. It might break a lot of things, so implement with care.
EDIT: See comments; we've decided on an alternative solution. |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
What would work is in dev mode checking the parameters are valid at the start of the function. Then it's much harder for us to miss, during our basic development cycles.