Closed (fixed)
Project:
Twitter
Version:
7.x-6.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2013 at 13:35 UTC
Updated:
17 Jun 2015 at 12:24 UTC
Jump to comment: Most recent
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.