Closed (cannot reproduce)
Project:
Zen
Version:
6.x-2.1
Component:
layout.css
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2011 at 21:35 UTC
Updated:
21 Aug 2013 at 15:24 UTC
I click "Preview" when posting a comment to a forum post and I get:
Notice: Undefined property: stdClass::$status in _zen_preprocess_comment()
The error comes from line 29 of template.comment.inc. The problem is that comment->status is not set yet for a comment in the Preview state.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| zen_comment_preview.patch | 594 bytes | ADLongwell |
Comments
Comment #1
ADLongwell commentedThe patch causes the comment to get Zen's tags of "unpublished-ness". I'm not sure whether that's the desired effect for everybody or not... it works for me.
Comment #2
barrapontoTried to reproduce but no error came up. The patch makes sense though.
Comment #3
johnalbin