View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005299 | OXID eShop (all versions) | 1.05. Users | public | 2013-07-16 16:12 | 2015-05-04 15:34 |
Reporter | taniol | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.7.6 / 5.0.6 | ||||
Target Version | 4.8.5 / 5.1.5 | Fixed in Version | 4.8.5 / 5.1.5 | ||
Summary | 0005299: Dynamic group assignment after register doesn't work anymore | ||||
Description | In oxcmp_user::createUser following statement is called (line 503): $oUser->addDynGroup( oxSession::getVar( 'dgr' ), $myConfig->getConfigParam( 'aDeniedDynGroups' ) ); at this point, the session variable "dgr" doesn't exist because it wasn't set before. I've made a module for oxcmp_user and changed the method oxcmp_user::registerUser as follow: public function registerUser() { // sets missing dgr var in session oxRegistry::getSession()->setVariable("dgr", oxRegistry::getConfig()->getRequestParameter("dgr")); return parent::registerUser(); } | ||||
Steps To Reproduce | Make use of the "dgr" parameter with an oxid of a new usergroup which is not a denied group, e.g. as hidden field in the register template. | ||||
Tags | No tags attached. | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||