- Affected version
- 2.2.12
Since 2.2.12 .. batch update users feature is broken due to this weird change at XF\Job\UserAction
where
This sets user title to
PHP:
$customTitle = $this->getActionValue('custom_title');
if ($customTitle !== '')
{
$user->custom_title = $customTitle;
}
where
$customTitle
will never be an empty string because the method getActionValue
returns null
for empty valuesThis sets user title to
null
and causes the user entity save process to fail silently at the method verifyCustomTitle
where null
will never equal empty string
PHP:
if ($title !== $this->app()->stringFormatter()->censorText($title))
{
$this->error(\XF::phrase('please_enter_custom_title_that_does_not_contain_any_censored_words'), 'custom_title');
return false;
}
Last edited: