Closed (fixed)
Project:
Translation Management Tool
Version:
7.x-1.x-dev
Component:
Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jan 2013 at 13:19 UTC
Updated:
23 Jan 2013 at 07:20 UTC
the parameter $message for tmgmt_message_access() is optional, but it's used as if it would be required, what leads under certain circumstances to a fatal php error:
Call to a member function getJob() on a non-object in modules/tmgmt/tmgmt.module on line 596
Create a variable $job and fill it conditionally, if the parameter $message is available, to pass it to tmgmt_job_access().
Should work fine as $job is optional in tmgmt_job_access().
reviews needed
none
none
| Comment | File | Size | Author |
|---|---|---|---|
| tmgmt-fix-in-tmgmt_message_access.patch | 691 bytes | das-peter |
Comments
Comment #1
berdirWasn't aware that view can be called without an entity sometimes too. Thanks, commited.