Closed (fixed)
Project:
Services
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Jan 2011 at 06:53 UTC
Updated:
10 Feb 2011 at 02:40 UTC
Jump to comment: Most recent file
When I call update method for node resource (via REST) I get five exceptions:
Undefined property: stdClass::$revision Notice node.pages.inc 162 node_form()
Undefined property: stdClass::$revision Notice node.pages.inc 171 node_form()
Undefined property: stdClass::$revision Notice node.pages.inc 176 node_form()
Undefined property: stdClass::$revision Notice node.pages.inc 182 node_form()
Undefined property: stdClass::$menu Notice menu.module 600 menu_form_node_form_alter()
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | services-1039144.patch | 2.97 KB | ygerasimov |
Comments
Comment #1
ygerasimov commentedThis happens because node does not get default attributes on 'prepare' stage before goes to drupal_form_submit(). This can be fixed with adding node_object_prepare(). See attached patch (trailing spaces removed as well).
Comment #2
kylebrowning commentedFixed, thanks