lib/scrivito/basic_obj.rb in scrivito_sdk-0.12.0 vs lib/scrivito/basic_obj.rb in scrivito_sdk-0.13.0

- old
+ new

@@ -74,10 +74,10 @@ converted_attributes['_widget_pool'] = CmsRestApi::AttributeSerializer.generate_widget_pool_changes(widget_hash) json = CmsRestApi.post(cms_rest_api_path, obj: converted_attributes) - obj = find(json['id']) + obj = find(json['id'] || json['_id']) CmsRestApi::WidgetExtractor.notify_persisted_widgets(obj, widget_hash) obj end