Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-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
Dominique Lenoir
intranet-timesheet2-workflow
Commits
f8ef5302
Commit
f8ef5302
authored
May 03, 2017
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- Deleting wf - redirect to conf-item page when case is being deleted
parent
4adf7836
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
new.tcl
www/conf-objects/new.tcl
+8
-1
No files found.
www/conf-objects/new.tcl
View file @
f8ef5302
...
...
@@ -26,6 +26,7 @@ if {![info exists panel_p]} {
}
}
set
user_id
[
auth::require_login
]
set
page_title
[
lang::message::lookup
""
intranet-timesheet2-workflow.Timesheet_Conf_Object
"Timesheet Confirmation"
]
set
context_bar
[
im_context_bar
$page
_title
]
...
...
@@ -115,7 +116,13 @@ if {[info exists conf_id]} {
set
button_pressed
[
template::form get_action form
]
if
{
"delete"
==
$button
_pressed
}
{
db_string conf_delete
"select im_timesheet_conf_object__delete(:conf_id)"
ad_returnredirect
$return
_url
# In some cases, return_url is set to the page showing the case that had been just deleted
if
{
[
string
first
"/acs-workflow/case?case_id"
[
string
tolower
$return
_url
]]
== 0
}
{
ad_returnredirect
"/intranet-timesheet2-workflow/conf-objects/"
}
else
{
ad_returnredirect
$return
_url
}
}
# ---------------------------------------------------------------
...
...
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