Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-tasks
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-timesheet2-tasks
Commits
2643b36f
Commit
2643b36f
authored
Mar 11, 2006
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added a query to allow only for a task_id
parent
1a65b6a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
new.tcl
www/new.tcl
+16
-2
No files found.
www/new.tcl
View file @
2643b36f
...
...
@@ -10,8 +10,8 @@ ad_page_contract {
@author frank.bergmann@project-open.com
}
{
task_id:integer,optional
project_id:integer
return_url
{
project_id:integer 0
}
{
return_url
""
}
edit_p:optional
message:optional
{
form_mode
"display"
}
...
...
@@ -28,6 +28,18 @@ set focus "task.var_name"
set
page_title
[
_ intranet-timesheet2-tasks.New_Timesheet_Task
]
set
context
[
list
$page
_title
]
# Check the case if there is no project specified.
# This is only OK if there is a task_id specified (new task for project
)
.
if
{
0 ==
$project
_id
}
{
if
{[
info
exists task_id
]}
{
set project_id
[
db_string project_from_task
"select project_id from im_timesheet_tasks where task_id = :task_id"
-default 0
]
}
else
{
ad_return_complaint 1
"You need to specify atleast a task or a project"
return
}
}
set
project_name
[
db_string project_name
"select project_name from im_projects where project_id=:project_id"
-default
"Unknown"
]
append
page_title
"for '
$project
_name'"
...
...
@@ -58,6 +70,8 @@ if {"delete" == $button_pressed} {
}
set
return_url
""
# ------------------------------------------------------------------
# Build the form
# ------------------------------------------------------------------
...
...
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