Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2
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
1
Merge Requests
1
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
Commits
a46b64a4
Commit
a46b64a4
authored
Feb 20, 2007
by
Christof Damian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use multirow_sort_tree to order the table by project_nr
parent
27e60b12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
new.tcl
www/hours/new.tcl
+9
-5
No files found.
www/hours/new.tcl
View file @
a46b64a4
...
...
@@ -259,6 +259,7 @@ set sql "
h.note,
h.billing_rate,
parent.project_id as top_project_id,
children.parent_id as parent_id,
children.project_id as project_id,
children.project_nr as project_nr,
children.project_name as project_name,
...
...
@@ -269,7 +270,8 @@ set sql "
parent.project_name as parent_project_name,
tree_level(children.tree_sortkey) -1 as subproject_level,
substring(parent.tree_sortkey from 17) as parent_tree_sortkey,
substring(children.tree_sortkey from 17) as child_tree_sortkey
substring(children.tree_sortkey from 17) as child_tree_sortkey,
lower(children.project_nr) as sort_order
from
im_projects parent,
im_projects children
...
...
@@ -289,9 +291,6 @@ set sql "
and children.project_status_id not in (
$closed
_stati_select)
and parent.project_id in (
$project
_sql)
$children
_sql
order by
lower(parent.project_name),
children.tree_sortkey
"
# ---------------------------------------------------------
...
...
@@ -314,7 +313,12 @@ set old_project_id 0
set
closed_level 0
set
closed_status
[
im_project_status_open
]
set
old_parent_project_nr
""
db_foreach hours_timesheet
$sql
{
db_multirow hours_multirow hours_timesheet
$sql
multirow_sort_tree hours_multirow project_id parent_id sort_order
template::multirow foreach hours_multirow
{
# ---------------------------------------------
# Deal with the open and closed subprojects
...
...
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