mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed failing ChannelServiceImpl.testUpdateChannel.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28976 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -382,6 +382,8 @@ public class ChannelServiceImpl implements ChannelService
|
||||
@Override
|
||||
public void updateChannel(Channel channel, Map<QName, Serializable> properties)
|
||||
{
|
||||
HashMap<QName, Serializable> actualProps = new HashMap<QName, Serializable>(properties);
|
||||
actualProps.remove(ContentModel.PROP_NODE_UUID);
|
||||
List<NodeRef> allChannelNodes = new ArrayList<NodeRef>();
|
||||
NodeRef editorialNode = channel.getNodeRef();
|
||||
allChannelNodes.add(editorialNode);
|
||||
@@ -391,7 +393,7 @@ public class ChannelServiceImpl implements ChannelService
|
||||
}
|
||||
for (NodeRef channelNode : allChannelNodes)
|
||||
{
|
||||
for (Map.Entry<QName, Serializable> entry : properties.entrySet())
|
||||
for (Map.Entry<QName, Serializable> entry : actualProps.entrySet())
|
||||
{
|
||||
nodeService.setProperty(channelNode, entry.getKey(), entry.getValue());
|
||||
}
|
||||
|
Reference in New Issue
Block a user