Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
3b53ea35
Commit
3b53ea35
authored
Sep 17, 2015
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
respect form's default title in Ticket_updateCreateResponseWorkflowActionDialog.
parent
7943ac16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_updateCreateResponseWorkflowActionDialog.xml
...5_crm/Ticket_updateCreateResponseWorkflowActionDialog.xml
+19
-5
No files found.
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_updateCreateResponseWorkflowActionDialog.xml
View file @
3b53ea35
...
...
@@ -66,16 +66,30 @@ if response_event_notification_message:\n
language=event.getLanguage(),\n
content_type=response_event_content_type or event.getContentType())\n
\n
try:\n
title_field_id = \'your_response_event_title\'\n
field = getattr(context, dialog_id)[title_field_id]\n
original_title = field.getFieldValue(title_field_id, \'default\')[0](field, title_field_id)\n
except (AttributeError, KeyError):\n
original_title = \'\'\n
if original_title:\n
reply_subject = original_title\n
else:\n
reply_subject = event.getReplySubject()\n
temp_event.Event_setTextContentFromNotificationMessage(\n
reference=response_event_notification_message,\n
substitution_method_parameter_dict=dict(reply_body=event.getReplyBody(),\n
reply_subject=event.getReplySubject()))\n
\n
substitution_method_parameter_dict=dict(\n
reply_body=event.getReplyBody(),\n
reply_subject=reply_subject))\n
title = temp_event.getTitle()\n
if reply_subject not in title:\n
title = \'%s (%s)\' % (title, reply_subject)\n
\n
# XXX this relies on formulator internals, we force the variables in request and\n
# re-render the form.\n
request = container.REQUEST\n
request.set(\'your_response_event_notification_message\', \'\')\n
request.set(\'your_response_event_title\', t
emp_event.getTitle()
)\n
request.set(\'your_response_event_title\', t
itle
)\n
request.set(\'your_response_event_text_content\', temp_event.getTextContent())\n
request.set(\'your_response_event_resource\', temp_event.getResource())\n
\n
...
...
@@ -84,7 +98,7 @@ return context.Ticket_viewCreateResponseWorkflowActionDialog()\n
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
response_event_portal_type, response_event_notification_message, response_event_resource, response_event_text_content, response_event_content_type, default_destination, **kw
</string>
</value>
<value>
<string>
response_event_portal_type, response_event_notification_message, response_event_resource, response_event_text_content, response_event_content_type, default_destination,
dialog_id,
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
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