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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
290ebd5d
Commit
290ebd5d
authored
Dec 07, 2020
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_forge:
parent
e9fbbfe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doVcsCommit.py
...tem/portal_skins/erp5_vcs/BusinessTemplate_doVcsCommit.py
+6
-5
No files found.
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doVcsCommit.py
View file @
290ebd5d
...
...
@@ -11,11 +11,12 @@ changelog = request.get('changelog', '')
if
not
changelog
.
strip
():
from
Products.ERP5Type.Message
import
translateString
error_msg
=
"Please set a ChangeLog message."
request
.
set
(
'portal_status_message'
,
translateString
(
error_msg
))
request
.
set
(
'cancel_url'
,
context
.
absolute_url
()
+
'/BusinessTemplate_viewVcsStatus?do_extract:int=0'
'&portal_status_message=Commit%20cancelled.'
)
return
context
.
asContext
(
**
kw
).
Base_renderForm
(
'BusinessTemplate_viewVcsChangelog'
)
return
context
.
asContext
(
**
kw
).
Base_renderForm
(
'BusinessTemplate_viewVcsChangelog'
,
keep_items
=
{
'portal_status_message'
:
translateString
(
error_msg
),
'cancel_url'
:
context
.
absolute_url
()
+
'/BusinessTemplate_viewVcsStatus?do_extract:int=0'
'&portal_status_message=Commit%20cancelled.'
})
try
:
return
context
.
getVcsTool
().
commit
(
changelog
,
**
kw
)
...
...
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