Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
MODX3: The country name in the user section is not always displayed #14732
Sometimes the name of the country is not loaded, for what reason this happens - it is not clear. The consoles are silent.
On the gif, I just refresh the page:
And in my opinion, this bug has always been.
This is how it looks in .js - https://github.com/modxcms/revolution/pull/14731/files#diff-28553f69fb263eee4808c9f7d481ef28R255
The value with uppercase is written to the database (lexicon files have an ISO code in lowercase)
As I understand it, this line is responsible for this https://github.com/modxcms/revolution/blob/3.x/core/src/Revolution/Processors/System/Country/GetList.php#L39
Ok, thats fine. But in the other example there was a
But I think this is not the issue. It should be caused by the listener that sets the values for the form. At the moment it runs at 'setup' but that could be too early. Maybe that could be switched to 'afterlayout' or whatever there is available.
@JoshuaLuckers Here are the details: