View Issue Details

IDProjectCategoryView StatusLast Update
0005657OXID eShop (all versions)1.05. Userspublic2015-12-01 10:27
Status acknowledgedResolutionopen 
Product Version4.7.5 / 5.0.5 
Target VersionFixed in Version 
Summary0005657: oxUser should not be deleted if exist in database
DescriptionA newsletter customer subscribes and an entry in oxuser will be saved (without Password and Salt).
Please mind the link in the conformation e-mail.

If the customer decides later, he want to register/buy with register, the handling of oxuser::createuser deletes the entry in DB and creates a new one.

Why does the code delete the entry instead of loading it?

The comments are contrary to the code oxUser::createUser() :

// user without password found - lets use
if ( isset( $sOXID ) && $sOXID ) {
    // try to update
    $this->delete( $sOXID );
} elseif ( $this->_blMallUsers ) {

It could be:

// user without password found - lets use
if ( isset( $sOXID ) && $sOXID ) {
    // try to update
    $this->load( $sOXID );
} elseif ( $this->_blMallUsers ) {

a similar ticket was already opened:
TagsComments, User Management
ThemeNot defined
PHP VersionNot defined
Database VersionNot defined


related to 0005308 resolvedjurate.baseviciene New Account Registration doesn't work after newsletter Registration 
related to 0004945 acknowledged oxuser does not use oxcounter 



2014-02-18 15:02

reporter   ~0009517

I think that this behaviour is also related to the feature "order without registration".