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()
CommentFileSizeAuthor
#1 services-1039144.patch2.97 KBygerasimov

Comments

ygerasimov’s picture

Status: Active » Needs review
StatusFileSize
new2.97 KB

This 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).

kylebrowning’s picture

Status: Needs review » Fixed

Fixed, thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.