We now get a message to improve our code when we safe a template. But I’m now getting the message “Unsafe variable names detected: custom[current_account.number].dagen_in_jaar”. Fine but the problem is that I don’t know why it’s not correct and what do I have to take into account to correct this? I’ve a similar variable “custom[current_account.number].manueel” where I don’t get an warning message.
Hi Michiel, here’s a part of the code because all the code is to much (adaptation of the intrest calculation) and spread over 7 parts. This is the only place where these 2 variables are mentioned.
The problem is following code: {% assign custom[current_account.number].dagen_in_jaar = noemer %}
You can never assign a custom variable like this. Custom variables can only be filled in by using {% input custom[current_account.number].dagen_in_jaar %} and enter the value in your template. Based on the piece of code you shared, I tend to say that you can use a local variable instead of a custom variable