#5604 - Tickets language is hardcoded

This is a spacer post for a website comment topic. The content this topic relates to: #5604 - Tickets language is hardcoded
It is a config option.

Setup > Configuration > Message Options > Support Tickets.

Thanks for that, I couldn't find it and didn't expect it to be a config option (I thought I was quite familiar with all the options, clearly not).
No worries, haha. I'm surprised the search didn't come up with it because it is a language string to set the default value.

I'll have to look into that.
Well changing the language string in tickets.ini didn't do anything for me, hence my suspicion it was hardcoded somewhere. I flushed my caches and everything :P

That's because Composr reads in the value of the language string as the default config option... and if you previously saved that page, then the raw value got saved with the option, meaning it was no longer associated with the language string.

Now that I think of it, this is probably not ideal. I might make an issue for v11... for every config option, if its value matches default, then blank the saved value out so it always reads in the default value instead (ideal for dynamically adjusting config options left to their default values when/if the default values change).
"Now that I think of it, this is probably not ideal. I might make an issue for
v11... for every config option, if its value matches default, then blank the
saved value out so it always reads in the default value instead (ideal for
dynamically adjusting config options left to their default values when/if the
default values change)."

It would need doing carefully. IIRC We have a field c_set, so you could set c_set=0 if it is just the same as the default. The actual value would still be copied in to the table as cached. You'd then need a new function that clears out cached values (values where c_set=0). You'd call that when lang files are edited.
See #5607
0 guests and 0 members have recently viewed this.