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
a419c885
Commit
a419c885
authored
Jul 20, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Now quoting HTML characters in imported projects from MS-Project
parent
fa5dc193
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
intranet-ganttproject-procs.tcl
tcl/intranet-ganttproject-procs.tcl
+9
-9
No files found.
tcl/intranet-ganttproject-procs.tcl
View file @
a419c885
...
...
@@ -1113,16 +1113,16 @@ ad_proc -public im_gp_save_tasks2 {
# OpenACS object, because GanttProject generates simply consecutive IDs for new objects.
# MS-Project: uid will be overwritten when parsing the task attributes.
set ms_project_p 0
set uid
[
$task
_node getAttribute id
""
]
set task_name
[
$task
_node getAttribute name
""
]
set start_date
[
$task
_node getAttribute start
""
]
set duration
[
$task
_node getAttribute duration
""
]
set percent_completed
[
$task
_node getAttribute complete
"0"
]
set priority
[
$task
_node getAttribute priority
""
]
set expand_p
[
$task
_node getAttribute expand
""
]
set uid
[
ns_quotehtml
[
$task
_node getAttribute id
""
]
]
set task_name
[
ns_quotehtml
[
$task
_node getAttribute name
""
]
]
set start_date
[
ns_quotehtml
[
$task
_node getAttribute start
""
]
]
set duration
[
ns_quotehtml
[
$task
_node getAttribute duration
""
]
]
set percent_completed
[
ns_quotehtml
[
$task
_node getAttribute complete
"0"
]
]
set priority
[
ns_quotehtml
[
$task
_node getAttribute priority
""
]
]
set expand_p
[
ns_quotehtml
[
$task
_node getAttribute expand
""
]
]
set end_date
[
db_string end_date
"select :start_date::date + :duration::integer"
]
set is_null 0
set milestone_p
[
$task
_node getAttribute meeting
"false"
]
set milestone_p
[
ns_quotehtml
[
$task
_node getAttribute meeting
"false"
]
]
set effort_driven_p
"t"
set effort_driven_type_id
[
im_timesheet_task_effort_driven_type_fixed_work
]
set note
""
...
...
@@ -1144,7 +1144,7 @@ ad_proc -public im_gp_save_tasks2 {
# Microsoft Project uses tags instead of attributes
foreach taskchild
[
$task
_node childNodes
]
{
set nodeName
[
$taskchild
nodeName
]
set nodeText
[
$taskchild
text
]
set nodeText
[
ns_quotehtml
[
$taskchild
text
]
]
# ns_log Notice
"im_gp_save_tasks2:
$task
_name: nodeName=
$node
Name, nodeText=
$node
Text"
switch
[
string
tolower
$node
Name
]
{
...
...
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