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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
643f8cdc
Commit
643f8cdc
authored
Apr 30, 2013
by
Jérome Perrin
Committed by
Gabriel Monnerat
May 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test the event path predicate before creating event
parent
019513bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_createEventFromDefaultEventPath.xml
...skins/erp5_crm/Entity_createEventFromDefaultEventPath.xml
+7
-0
bt5/erp5_crm/bt/revision
bt5/erp5_crm/bt/revision
+1
-1
No files found.
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_createEventFromDefaultEventPath.xml
View file @
643f8cdc
...
...
@@ -53,6 +53,13 @@
<value>
<string>
portal = context.getPortalObject()\n
\n
event_path = portal.restrictedTraverse(event_path)\n
\n
# Test that the event path destination predicate applies for this destination.\n
# Also support the case where the destination is given directly as a node.\n
event_path_destination = event_path.getDestinationValue()\n
if not (context == event_path_destination or event_path_destination.test(context)):\n
return\n
\n
follow_up = event_path.getParentRelativeUrl()\n
event_portal_type = event_path.getEventPortalType()\n
resource_reference = event_path.getResourceReference()\n
...
...
bt5/erp5_crm/bt/revision
View file @
643f8cdc
633
\ No newline at end of file
634
\ 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