kumarsivarajan / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Registration Plugin: "add_to_users" not working #547

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Prepare Mollify for self-registration with approval, creation of user folder 
and auto-assigning the user-folder to an other user (administrator)
2. Register a new user
3. Approve the request

What is the expected output? What do you see instead?
After approving the request an error message "Request failed" is displayed and 
an error has been logged in the apache log file: 

"MOLLIFY ERROR: PHP error #8, Undefined variable: folderId 
(/var/www/html/mollify/backend/plugin/Registration/RegistrationServices.class.ph
p:307) [...]"

Nevertheless the approval takes place, but the newly created user folder is not 
assigned to the administrator.

What version of the product are you using? On what operating system?
2.5.10, CentOS 6.4, PHP 5.3.3

Original issue reported on code.google.com by markus.d...@greenpocket.de on 8 May 2014 at 4:14

GoogleCodeExporter commented 8 years ago
I already found a solution, that is working for me: Replace line 307 in 
RegistrationServices.class.php from 

$this->env->configuration()->addFolderUsers($folderId, $existing);

to

$this->env->configuration()->addFolderUsers($uf["id"], $existing);

Original comment by markus.d...@greenpocket.de on 8 May 2014 at 4:16

GoogleCodeExporter commented 8 years ago

Original comment by samuli.j...@gmail.com on 10 May 2014 at 3:02

GoogleCodeExporter commented 8 years ago
Fixed in 2.5.11

Original comment by samuli.j...@gmail.com on 11 May 2014 at 10:47