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:
@@ -107,9 +107,16 @@ public class PropertyImpl extends ItemImpl implements Property
|
|||||||
* @see javax.jcr.Item#remove()
|
* @see javax.jcr.Item#remove()
|
||||||
*/
|
*/
|
||||||
public void remove() throws VersionException, LockException, ConstraintViolationException, RepositoryException
|
public void remove() throws VersionException, LockException, ConstraintViolationException, RepositoryException
|
||||||
|
{
|
||||||
|
if (getDefinition().isMultiple())
|
||||||
|
{
|
||||||
|
setValue((Value[])null);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
setValue((Value)null);
|
setValue((Value)null);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see javax.jcr.Property#setValue(javax.jcr.Value)
|
* @see javax.jcr.Property#setValue(javax.jcr.Value)
|
||||||
|
Reference in New Issue
Block a user