Possible bugs in user XML import in OJS 3.5.0-5

Describe the issue or problem
I ran into an issue importing users some time ago. I don’t remember the exact errors or how I resolved it, but I noted two possible bugs in plugins/importexport/users/filter/UserXmlPKPUserFilter.php:

On line 356, the reviewer role check uses assignment = instead of comparison ==:
if ($userGroup->roleId = Role::ROLE_ID_REVIEWER) {
$masthead = true;
}

On line 360, the code references $startDate, but it appears to be undefined.
$dateStart = $startDate ?? Core::getCurrentDate();

Steps I took leading up to the issue
Attempted to import users using the Users XML import/export plugin.

  1. Encountered an issue and investigated the import code.
  2. Noticed the lines above.

Unfortunately, this happened a while ago, so I can’t provide the exact steps or recall how I got around this error when importing users.

What application are you using?
OJS 3.5.0-5

Additional information
The errors can be seen in the file: pkp-lib/plugins/importexport/users/filter/UserXmlPKPUserFilter.php at stable-3_5_0 · pkp/pkp-lib · GitHub

Hi @stephanie,

Those problems are solved incidentally by this issue, which will be merged for release in OJS 3.5.0-6 pretty soon:

Regards,
Alec Smecher
Public Knowledge Project Team

Excellent! Thank you so much! Do you know when 3.5.0-6 will be released?

Hi @stephanie,

We’re planning to release 3.6 in Q4 this year. If we mange, it’ll be late in Q4 :slight_smile:

Thanks,
Alec Smecher
Public Knowledge Project Team