Reply to thread

Since 2.2.12 .. batch update users feature is broken due to this weird change at XF\Job\UserAction

[CODE=php]        $customTitle = $this->getActionValue('custom_title');

        if ($customTitle !== '')

        {

            $user->custom_title = $customTitle;

        }

[/CODE]


where $customTitle will never be an empty string because the method getActionValue returns null for empty values

This 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

[CODE=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;

        }

[/CODE]


Back
Top Bottom