mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-1926 - org.alfresco.jcr.item.PropertyImpl.remove() throws ValueFormatException on multi-valued properties
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18949 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -108,7 +108,14 @@ public class PropertyImpl extends ItemImpl implements Property
|
||||
*/
|
||||
public void remove() throws VersionException, LockException, ConstraintViolationException, RepositoryException
|
||||
{
|
||||
setValue((Value)null);
|
||||
if (getDefinition().isMultiple())
|
||||
{
|
||||
setValue((Value[])null);
|
||||
}
|
||||
else
|
||||
{
|
||||
setValue((Value)null);
|
||||
}
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
Reference in New Issue
Block a user