{$userGroup} in file upload instead of populating the field with the user group information

After upgrading from OJS 3.1.0.1 to 3.1.1.1 a few weeks ago (and then to 3.1.1.2), file upload processes do not populate the {$userGroup} in the filename with the actual userGroup. The user name and the filename displays correctly.

image

I have a multilingual installation, but the same happens if I try to upload from the different language environments.

Any guess why this happens and how I can fix it?

Hi @czirfusz,

What languages are you working with? Have you customized the common.file.namingPattern locale key (defined in lib/pkp/locale/en_US/common.xml, for example, for English)?

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Solved, thank you for the hint! I had a remnant of {$userGroup} in one language under the aforementioned locale key. This has already changed in this commit.