mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged BRANCHES/V3.2 to HEAD:
19807: Fix ALF-2318 - failed to add WCM content (without description or title) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19815 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -257,6 +257,7 @@ public class PropertyValue implements Cloneable, Serializable
|
||||
@Override
|
||||
protected ValueType getPersistedType(Serializable value)
|
||||
{
|
||||
// NOTE: since 2.2.1, PropertyValue is only used by AVM (which does not natively support MLText, other than single/default string)
|
||||
if (value instanceof MLText)
|
||||
{
|
||||
MLText mlText = (MLText) value;
|
||||
@@ -269,7 +270,7 @@ public class PropertyValue implements Cloneable, Serializable
|
||||
return ValueType.STRING;
|
||||
}
|
||||
}
|
||||
else if (value instanceof String)
|
||||
else if ((value == null) || (value instanceof String))
|
||||
{
|
||||
return ValueType.STRING;
|
||||
}
|
||||
|
Reference in New Issue
Block a user