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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vincent Bechu
erp5
Commits
97448385
Commit
97448385
authored
Aug 21, 2017
by
Boxiang Sun
Committed by
Tristan Cavelier
Aug 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_support_request_ui: Publish the post when adding a post to a Support Request.
parent
d8be8355
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
bt5/erp5_officejs_support_request_ui/SkinTemplateItem/portal_skins/erp5_officejs_support_request/SupportRequestModule_createSupportRequest.py
...port_request/SupportRequestModule_createSupportRequest.py
+5
-5
No files found.
bt5/erp5_officejs_support_request_ui/SkinTemplateItem/portal_skins/erp5_officejs_support_request/SupportRequestModule_createSupportRequest.py
View file @
97448385
...
@@ -38,9 +38,9 @@ support_request.submit()
...
@@ -38,9 +38,9 @@ support_request.submit()
# create an HTML Post
# create an HTML Post
if
description
or
file
is
not
None
:
if
description
or
file
is
not
None
:
post_module
=
portal
.
post_module
post_module
=
portal
.
post_module
post
_1
=
post_module
.
newContent
(
portal_type
=
'HTML Post'
)
post
=
post_module
.
newContent
(
portal_type
=
'HTML Post'
)
post
_1
.
edit
(
post
.
edit
(
start_date
=
now
,
start_date
=
now
,
follow_up_value
=
support_request
,
follow_up_value
=
support_request
,
text_content
=
description
,
text_content
=
description
,
...
@@ -54,12 +54,12 @@ if description or file is not None:
...
@@ -54,12 +54,12 @@ if description or file is not None:
document
=
context
.
Base_contribute
(
**
document_kw
)
document
=
context
.
Base_contribute
(
**
document_kw
)
# set relation between post and document
# set relation between post and document
post
_1
.
setSuccessorValueList
([
document
])
post
.
setSuccessorValueList
([
document
])
# depending on security model this should be changed accordingly
# depending on security model this should be changed accordingly
document
.
publish
()
document
.
publish
()
post
.
publish
()
post
_1
.
immediateReindexObject
()
post
.
immediateReindexObject
()
support_request
.
immediateReindexObject
()
support_request
.
immediateReindexObject
()
...
...
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