Forgot to save the page_parts

This commit is contained in:
chris 2012-12-03 17:49:26 +08:00
parent bdcfb46294
commit 2757044c32
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class Page < Item
current_part.kind = menu_part.kind current_part.kind = menu_part.kind
current_part.public_r_tag = menu_part.public_r_tag current_part.public_r_tag = menu_part.public_r_tag
current_part.public_r_tag_object_id = menu_part.public_r_tag_object_id current_part.public_r_tag_object_id = menu_part.public_r_tag_object_id
current_part.save
else else
current_part.update_attributes(:kind => menu_part.kind, :public_r_tag => menu_part.public_r_tag, :public_r_tag_object_id => menu_part.public_r_tag_object_id) current_part.update_attributes(:kind => menu_part.kind, :public_r_tag => menu_part.public_r_tag, :public_r_tag_object_id => menu_part.public_r_tag_object_id)
end end