Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-ganttproject
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-ganttproject
Commits
7da611c3
Commit
7da611c3
authored
May 29, 2017
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed issue exporting Gantt Project format
parent
a9cc7f49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
intranet-ganttproject-procs.tcl
tcl/intranet-ganttproject-procs.tcl
+9
-7
gantt-project.gan.tcl
www/gantt-project.gan.tcl
+1
-0
No files found.
tcl/intranet-ganttproject-procs.tcl
View file @
7da611c3
...
...
@@ -66,10 +66,7 @@ ad_proc -public im_ganttproject_write_subtasks {
p.project_id = o.object_id
and parent_id = :project_id
and p.project_type_id =
[
im_project_type_task
]
and p.project_status_id not in (
[
im_project_status_deleted
]
,
[
im_project_status_closed
]
)
and p.project_status_id not in (
[
im_project_status_deleted
]
)
order by sort_order
"
]
...
...
@@ -113,7 +110,8 @@ ad_proc -public im_ganttproject_write_task {
p.start_date::date as start_date,
p.end_date::date as end_date,
p.end_date::date - p.start_date::date as duration,
c.company_name
c.company_name,
round(p.percent_completed) as percent_completed -- GP does needs an integer!
from im_projects p
LEFT OUTER JOIN im_timesheet_tasks t on (p.project_id = t.task_id),
acs_objects o,
...
...
@@ -1873,15 +1871,19 @@ ad_proc -public im_gp_save_allocations {
# Store extra assignment information into the im_gantt_assigments table
set assig_exists_p
[
db_string assig_exists
"select count(*) from im_gantt_assignments where rel_id = :rel_id"
]
if
{
!$assig_exists_p
}
{
db_dml insert_assig
"insert into im_gantt_assignments (rel_id, xml_elements) values (:rel_id, :xml_elements)"
}
if
{
!$assig_exists_p &&
""
ne
$xml
_elements
}
{
db_dml insert_assig
"insert into im_gantt_assignments (rel_id, xml_elements) values (:rel_id, :xml_elements)"
}
ns_log Notice
"im_gp_save_allocations: ctr=
$ctr
, xml_elements=
$xml
_elements"
set komma
","
if
{
0 eq
[
llength
$gantt
_assignments_list
]}
{
set komma
""
}
set ass_sql
"
update im_gantt_assignments set
xml_taskuid = '
$task
_id',
xml_resourceuid = '
$resource
_id',
xml_elements = '
$xml
_elements'
,
xml_elements = '
$xml
_elements'
$komma
[
join
$gantt
_assignments_list
",
\n\t\t\t\t
"
]
where rel_id = :rel_id
"
...
...
www/gantt-project.gan.tcl
View file @
7da611c3
...
...
@@ -306,5 +306,6 @@ $project_node appendXML "
ns_return 200 application/octet-stream
[
$doc
asXML -indent 2 -escapeNonASCII
]
# ns_return 200 "text/xml" [$doc asXML -indent 2 -escapeNonASCII
]
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