thyseus / yii-user-management

a user management module collection for the yii framework
185 stars 122 forks source link

Fix improper performAjaxValidation call in YumMessageController.php #206

Open tsaneff opened 9 years ago

tsaneff commented 9 years ago

Attempt to fix the following issue: When user is composing YumMessage to a 'friend', although the message is send with success, the following error occurs in the logs: Fix "[error] [php] Attempt to assign property of non-object (...) ... Stack trace: #0 unknown(0): YumMessageController->actionCompose()... YumMessageController.php (67)...

Resolution: It seems 'performAjaxValidation' was not called with actual model object and also the object itself was with missing 'from_user' relation.