Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
erp5
Commits
566dc9cb
Commit
566dc9cb
authored
Apr 03, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a better message
parent
a6333131
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testFolderWorkflowActionNothingSelected.xml
...mplates_zuite/testFolderWorkflowActionNothingSelected.xml
+1
-1
bt5/erp5_ui_test/bt/revision
bt5/erp5_ui_test/bt/revision
+1
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_validateFolderWorkflowActionDialog.xml
...ins/erp5_core/Base_validateFolderWorkflowActionDialog.xml
+7
-3
product/ERP5/bootstrap/erp5_core/bt/revision
product/ERP5/bootstrap/erp5_core/bt/revision
+1
-1
No files found.
bt5/erp5_ui_test/PathTemplateItem/portal_tests/page_templates_zuite/testFolderWorkflowActionNothingSelected.xml
View file @
566dc9cb
...
...
@@ -131,7 +131,7 @@
</tr>
\n
<tr>
\n
<td>
assertPortalStatusMessage
</td>
\n
<td>
You must select one action.
</td>
\n
<td>
You must select on
ly on
e action.
</td>
\n
<td></td>
\n
</tr>
\n
\n
...
...
bt5/erp5_ui_test/bt/revision
View file @
566dc9cb
708
\ No newline at end of file
709
\ No newline at end of file
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_validateFolderWorkflowActionDialog.xml
View file @
566dc9cb
...
...
@@ -50,12 +50,16 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
if len([choice for choice in editor.values() if choice[\'workflow_action\']]) == 1:\n
<value>
<string>
from Products.ERP5Type.Message import translateString\n
choosen = [choice for choice in editor.values() if choice[\'workflow_action\']]\n
if len(choosen) == 1:\n
return True\n
\n
from Products.ERP5Type.Message import translateString\n
# XXX listbox validator does not show the validation failed message, so use portal status message instead\n
container.REQUEST.set(\'portal_status_message\', translateString("You must select one action."))\n
if len(choosen) == 0:\n
container.REQUEST.set(\'portal_status_message\', translateString("You must select one action."))\n
else:
container.REQUEST.set(\'portal_status_message\', translateString("You must select only one action."))\n
return False\n
</string>
</value>
</item>
...
...
product/ERP5/bootstrap/erp5_core/bt/revision
View file @
566dc9cb
41076
\ No newline at end of file
41077
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment