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
Labels
Merge Requests
138
Merge Requests
138
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
a70ed34e
Commit
a70ed34e
authored
Jan 13, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop implicit behaviour.
If no module is selected, check nothing.
parent
0a51e67b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/Alarm_activateCheckConsistency.xml
...ns/erp5_administration/Alarm_activateCheckConsistency.xml
+1
-3
bt5/erp5_administration/bt/revision
bt5/erp5_administration/bt/revision
+1
-1
No files found.
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/Alarm_activateCheckConsistency.xml
View file @
a70ed34e
...
...
@@ -53,7 +53,6 @@
<value>
<string>
active_process = context.newActiveProcess().getRelativeUrl()\n
query_string = context.getProperty(\'catalog_query_string\', \'\')\n
# the query sould be something like "validation_state:!=deleted validation_state:!=draft portal_type:Organisation" etc\n
module_list = context.getProperty(\'module_list\') or []\n
portal = context.getPortalObject()\n
\n
kw = {}\n
...
...
@@ -61,8 +60,7 @@ kw = {}\n
if query_string is not None:\n
kw.update(SearchableText=query_string)\n
\n
if len(module_list):\n
kw.update(parent_uid=[portal.restrictedTraverse(module).getUid() for module in module_list])\n
kw.update(parent_uid=[portal.restrictedTraverse(module).getUid() for module in context.getProperty(\'module_list\') or []])\n
\n
portal.portal_catalog.searchAndActivate(method_id=\'Base_checkAlarmConsistency\', method_kw={\'fixit\': fixit, \'active_process\': active_process}, activate_kw={\'tag\':tag}, **kw)\n
</string>
</value>
...
...
bt5/erp5_administration/bt/revision
View file @
a70ed34e
139
\ No newline at end of file
140
\ No newline at end of file
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