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
1e8ffb54
Commit
1e8ffb54
authored
Aug 21, 2017
by
Boxiang Sun
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
be529d05
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 @
1e8ffb54
...
...
@@ -38,9 +38,9 @@ support_request.submit()
# create an HTML Post
if
description
or
file
is
not
None
:
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
,
follow_up_value
=
support_request
,
text_content
=
description
,
...
...
@@ -54,12 +54,12 @@ if description or file is not None:
document
=
context
.
Base_contribute
(
**
document_kw
)
# set relation between post and document
post
_1
.
setSuccessorValueList
([
document
])
post
.
setSuccessorValueList
([
document
])
# depending on security model this should be changed accordingly
document
.
publish
()
post
_1
.
immediateReindexObject
()
post
.
publish
()
post
.
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