The code in twitter_post_field_attach_form() function uses $form_state['field'] without checking of its existence. This property does not exist when entity without fields is editing. The patch fixes this.
P.S. It's better not to load all the twitter code if the form contains no twitter related fields. It is another issue which can be solved.
| Comment | File | Size | Author |
|---|---|---|---|
| twitter-entities_without_fields.patch | 639 bytes | maximpodorov |
Comments
Comment #1
andypostProbably you need to use field_info_* some function to make sure that no fields defined
Comment #2
maximpodorov commentedAnyway, you should check (not omnipresent) array element existence before using it.
Comment #3
damienmckennaShort & simple.
Comment #4
damienmckennaComment #5
damienmckennaTriggering the testbot.
Comment #7
damienmckennaCommitted. Thanks.