Hi i got this error in views.
My user can publish their own nodes but then they are not supposed to be able to unpublish them since unpublishing is set by schedule.
I got this error in a view when the user don't have the unpublish permission.
Notice: Undefined variable: op in publishcontent_views_handler_field_node_link->render() on line 61 of publishcontent_views_handler_field_node_link.inc
The module is trying to set the unpublish link attributes based on not existing $op variable which is empty in this case. I just moved it inside the if() check the line below.
| Comment | File | Size | Author |
|---|---|---|---|
| fix_empty_op_var.patch | 767 bytes | gionnibgud |
Comments
Comment #1
gionnibgud commentedComment #2
gionnibgud commentedComment #3
aaronbaumanThanks for the patch.
I've committed this locally and I'll include this patch in the next release, 1.0, which I'll roll pending resolution of #1170962: Broken/missing handler trying to add a "Publish link" in my view
Comment #4
gionnibgud commentedCool.
You are very welcome.
Comment #5
aaronbaumanNew release minted. thanks again