mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
ETHREEOH-2126 - WCM meta data extraction does not extract title when form is created
- metadata extractor was not firing - titled aspect was applied after extraction thereby overwriting extracted value. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17034 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1418,6 +1418,13 @@ public class AVMNodeService extends AbstractNodeServiceImpl implements NodeServi
|
||||
{
|
||||
throw new InvalidNodeRefException("Read only store.", nodeRef);
|
||||
}
|
||||
|
||||
Map<QName, Serializable> propsBefore = null;
|
||||
if (fInvokePolicies)
|
||||
{
|
||||
propsBefore = getProperties(nodeRef);
|
||||
}
|
||||
|
||||
if (isBuiltInProperty(qname))
|
||||
{
|
||||
if (qname.equals(ContentModel.PROP_CONTENT))
|
||||
@@ -1427,7 +1434,6 @@ public class AVMNodeService extends AbstractNodeServiceImpl implements NodeServi
|
||||
fAVMService.setContentData(avmVersionPath.getSecond(), (ContentData)value);
|
||||
if (fInvokePolicies)
|
||||
{
|
||||
Map<QName, Serializable> propsBefore = getProperties(nodeRef);
|
||||
Map<QName, Serializable> propsAfter = new HashMap<QName, Serializable>(propsBefore);
|
||||
propsAfter.put(ContentModel.PROP_CONTENT, value);
|
||||
invokeOnUpdateProperties(nodeRef, propsBefore, propsAfter);
|
||||
@@ -1442,11 +1448,7 @@ public class AVMNodeService extends AbstractNodeServiceImpl implements NodeServi
|
||||
}
|
||||
try
|
||||
{
|
||||
Map<QName, Serializable> propsBefore = null;
|
||||
if (fInvokePolicies)
|
||||
{
|
||||
propsBefore = getProperties(nodeRef);
|
||||
}
|
||||
|
||||
PropertyDefinition propertyDef = dictionaryService.getProperty(qname);
|
||||
PropertyValue propertyValue = makePropertyValue(propertyDef, value);
|
||||
fAVMService.setNodeProperty(avmVersionPath.getSecond(), qname, propertyValue);
|
||||
|
Reference in New Issue
Block a user