[DS-694] Fix writing of modification information to Item

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5488 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Graham Triggs
2010-10-20 16:37:03 +00:00
parent 85b63acde8
commit 28a7aecf74

View File

@@ -1718,6 +1718,7 @@ public class Item extends DSpaceObject
modified = true; modified = true;
} }
} }
}
if (dublinCoreChanged || modified) if (dublinCoreChanged || modified)
{ {
@@ -1749,13 +1750,6 @@ public class Item extends DSpaceObject
} }
} }
if (modified)
{
ourContext.addEvent(new Event(Event.MODIFY, Constants.ITEM, getID(), null));
modified = false;
}
}
private MetadataField getMetadataField(DCValue dcv) throws SQLException, AuthorizeException private MetadataField getMetadataField(DCValue dcv) throws SQLException, AuthorizeException
{ {
return MetadataField.findByElement(ourContext, return MetadataField.findByElement(ourContext,