Custom field casting affected by recent update?

Sorry for bumping this up but one of the conditions is when you use a symbol index i.e. custom_fields[:hello] while updating the existing value, it added another field instead of updating and hence the giving an array. This might be the only condition IMO.

This should fix the caused side-effect most certainly.
https://github.com/discourse/discourse/pull/10486

2 Likes