mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixes ALF-10973: Failed to open 'Create Rule' page
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -81,14 +81,4 @@
|
||||
<property name="publicAction" value="false" />
|
||||
</bean>
|
||||
|
||||
<bean id="ac-publishing-channels" class="org.alfresco.repo.publishing.PublishingChannelParameterConstraint"
|
||||
parent="action-constraint">
|
||||
<property name="channelService" ref="ChannelService" />
|
||||
</bean>
|
||||
|
||||
<bean id="ac-status-update-channels" class="org.alfresco.repo.publishing.StatusUpdateChannelParameterConstraint"
|
||||
parent="action-constraint">
|
||||
<property name="channelService" ref="ChannelService" />
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
|
@@ -237,8 +237,8 @@ public class PublishContentActionExecuter extends ActionExecuterAbstractBase
|
||||
if (nodes.size() == 1)
|
||||
{
|
||||
nodeToLinkTo = nodes.get(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((nodeToLinkTo != null) && nodes.contains(nodeToLinkTo))
|
||||
{
|
||||
details.setStatusNodeToLinkTo(nodeToLinkTo);
|
||||
@@ -305,9 +305,21 @@ public class PublishContentActionExecuter extends ActionExecuterAbstractBase
|
||||
List<String> result = null;
|
||||
if (parameterValue != null && String.class.isAssignableFrom(parameterValue.getClass()))
|
||||
{
|
||||
String[] split = ((String) parameterValue).split(",");
|
||||
String[] split = ((String)parameterValue).split(",");
|
||||
result = Arrays.asList(split);
|
||||
}
|
||||
else if (parameterValue != null && Iterable.class.isAssignableFrom(parameterValue.getClass()))
|
||||
{
|
||||
result = new ArrayList<String>();
|
||||
Iterable<?> iter = (Iterable<?>)parameterValue;
|
||||
for (Object obj : iter)
|
||||
{
|
||||
if (obj != null && String.class.isAssignableFrom(obj.getClass()))
|
||||
{
|
||||
result.add((String)obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -318,7 +330,7 @@ public class PublishContentActionExecuter extends ActionExecuterAbstractBase
|
||||
getParamDisplayLabel(PARAM_PUBLISH_CHANNEL_NAME), false));
|
||||
|
||||
paramList.add(new ParameterDefinitionImpl(PARAM_PUBLISH_CHANNEL_ID, DataTypeDefinition.TEXT, false,
|
||||
getParamDisplayLabel(PARAM_PUBLISH_CHANNEL_ID), false, "ac-publishing-channels"));
|
||||
getParamDisplayLabel(PARAM_PUBLISH_CHANNEL_ID), false));
|
||||
|
||||
paramList.add(new ParameterDefinitionImpl(PARAM_UNPUBLISH, DataTypeDefinition.BOOLEAN, false,
|
||||
getParamDisplayLabel(PARAM_UNPUBLISH), false));
|
||||
@@ -333,7 +345,7 @@ public class PublishContentActionExecuter extends ActionExecuterAbstractBase
|
||||
getParamDisplayLabel(PARAM_STATUS_UPDATE_CHANNEL_NAMES), true));
|
||||
|
||||
paramList.add(new ParameterDefinitionImpl(PARAM_STATUS_UPDATE_CHANNEL_IDS, DataTypeDefinition.TEXT, false,
|
||||
getParamDisplayLabel(PARAM_STATUS_UPDATE_CHANNEL_IDS), true, "ac-status-update-channels"));
|
||||
getParamDisplayLabel(PARAM_STATUS_UPDATE_CHANNEL_IDS), true));
|
||||
|
||||
paramList.add(new ParameterDefinitionImpl(PARAM_SCHEDULED_TIME, DataTypeDefinition.DATETIME, false,
|
||||
getParamDisplayLabel(PARAM_SCHEDULED_TIME), false));
|
||||
|
Reference in New Issue
Block a user