lib/scrivito/page_config.rb in scrivito_sdk-1.6.0.rc1 vs lib/scrivito/page_config.rb in scrivito_sdk-1.6.0.rc2
- old
+ new
@@ -20,10 +20,12 @@
editor.id
end
def preloaded_obj_data
if obj
- [obj.data_from_cms.to_h]
+ obj_in_selected_workpace =
+ editing_context.selected_workspace.objs.find_including_deleted(obj.id)
+ [obj_in_selected_workpace.data_from_cms.to_h]
else
[]
end
end