Commit 9455213f authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: really check source/destination_project...

parent 8c5fc7d7
......@@ -26,7 +26,7 @@
</item>
<item>
<key> <string>expression</string> </key>
<value> <string>python: len([x for x in [here.getSourceSectionValue(portal_type=\'Project\'), here.getDestinationSectionValue(portal_type=\'Project\')] if ((x is not None) and (x.getValidationState() in (\'validated\', \'invalidated\', \'suspended\')))]) != 0</string> </value>
<value> <string>python: len([x for x in [here.getSourceProjectValue(portal_type=\'Project\'), here.getDestinationProjectValue(portal_type=\'Project\')] if ((x is not None) and (x.getValidationState() in (\'validated\', \'invalidated\', \'suspended\')))]) != 0</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......@@ -34,7 +34,7 @@
</item>
<item>
<key> <string>message_expression_false</string> </key>
<value> <string>source_project or destination_project is required</string> </value>
<value> <string>A project is required</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment