ezsystems/ezpublish-legacy — pull request #978 by yannickroger (2014-05-27 09:20:47+00:00)
Title: Fix EZP-22554: Email error when registering a user

Link: https://jira.ez.no/browse/EZP-22554

## Description
In https://jira.ez.no/browse/EZP-21966 we introduced a way to have a single "draft" for ezusers (they were none before that). With this fix, ezusers were not filled up with login information until they are published. Sometimes, existing code, like the user/register, needs to access these information before the ezuser has been published.
In order to fix that, this patch disables the "draft" feature for the first version of the user.

## Tests
Test on user register and sanity checks on user edit.