Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-workflow
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-workflow
Commits
5663b5ec
Commit
5663b5ec
authored
Sep 04, 2019
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added "Terminate Workflow" option
parent
071bc1ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
intranet-workflow-procs.tcl
tcl/intranet-workflow-procs.tcl
+4
-2
inbox-action.tcl
www/inbox-action.tcl
+4
-0
No files found.
tcl/intranet-workflow-procs.tcl
View file @
5663b5ec
...
...
@@ -1353,7 +1353,9 @@ ad_proc -public im_workflow_home_inbox_component {
set admin_action_options
""
if
{
$user
_is_admin_p
}
{
set admin_action_options
"<option value=
\"
nuke
\"
>
[
lang::message::lookup
""
intranet-workflow.Nuke_Object
"Nuke Object (Admin only)"
]
</option>
\n
"
append admin_action_options
"<option value=
\"
terminate_wf
\"
>
[
lang::message::lookup
""
intranet-workflow.Terminate_Workflow
"Terminate Workflow"
]
</option>
\n
"
append admin_action_options
"<option value=
\"
nuke
\"
>
[
lang::message::lookup
""
intranet-workflow.Nuke_Object
"Nuke Object (Admin only)"
]
</option>
\n
"
}
foreach wf_trans
[
lsort
[
array
names action_hash
]]
{
...
...
@@ -1365,8 +1367,8 @@ ad_proc -public im_workflow_home_inbox_component {
<tr class=rowplain>
<td colspan=99 class=rowplain align=left>
<select name=
\"
operation
\"
>
$admin
_action_options
<option value=
\"
delete_membership
\"
>
[
lang::message::lookup
""
intranet-workflow.Remove_From_Inbox
"Remove from Inbox"
]
</option>
$admin
_action_options
</select>
<input type=submit name=submit value='
[
lang::message::lookup
""
intranet-workflow.Submit
"Submit"
]
'>
</td>
...
...
www/inbox-action.tcl
View file @
5663b5ec
...
...
@@ -62,6 +62,10 @@ foreach tid $task_id {
"
}
terminate_wf
{
im_workflow_cancel_workflow -object_id
$object
_id
}
nuke
{
switch
$object
_type
{
im_ticket - im_project
{
...
...
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