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
da2bf863
Commit
da2bf863
authored
Jan 24, 2013
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Timesheet configuration objects:
Allowed for manual delete
parent
4deb9477
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
delete.tcl
www/conf-objects/delete.tcl
+41
-0
No files found.
www/conf-objects/delete.tcl
0 → 100755
View file @
da2bf863
# /packages/intranet-timesheet2-workflow/www/conf-objects/delete.tcl
#
# Copyright (C
)
2003-2013
]
project-open
[
#
# All rights reserved. Please check
# http://www.project-open.com/license/ for details.
ad_page_contract
{
Takes commands from the /intranet-notes/index page or
the notes-list-compomponent and perform the selected
action an all selected notes.
@author frank.bergmann@project-open.com
}
{
conf_id:multiple,optional
return_url
}
# ---------------------------------------------------------------
# Defaults & Security
# ---------------------------------------------------------------
set
user_id
[
ad_maybe_redirect_for_registration
]
if
{
!
[
info
exists conf_id
]
|| 0 ==
[
llength
$conf
_id
]}
{
aad_returnredirect
$return
_url
}
foreach
cid
$conf
_id
{
set project_id
[
db_string pid
"select conf_project_id from im_timesheet_conf_objects where conf_id = :cid"
-default
""
]
im_project_permissions
$user
_id
$project
_id view_p read_p write_p admin_p
if
{
!$admin_p
}
{
ad_return_complaint 1
"<b>
[
lang::message::lookup
""
intranet-timesheet2-workflow.Insufficient_permission
"Insufficient permissions"
]
</b>"
ad_script_abort
}
else
{
db_string del_conf_object
"select im_timesheet_conf_object__delete(:cid) from dual"
-default
""
}
}
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