lib/scrivito/attribute_content.rb in scrivito_sdk-0.14.0 vs lib/scrivito/attribute_content.rb in scrivito_sdk-0.15.0
- old
+ new
@@ -72,9 +72,11 @@
# @api public
def valid_widget_classes_for(field_name)
end
def modification_for_attribute(attribute_name, revision=Workspace.current.base_revision)
+ return Modification::UNMODIFIED unless revision
+
if new?(revision)
Modification::NEW
elsif deleted?(revision)
Modification::DELETED
else