Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-csv-import
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-csv-import
Commits
10d5fde1
Commit
10d5fde1
authored
Nov 03, 2016
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- CSV Import for projects:
- Fixed import of Project Manager field
parent
2464eb18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
intranet-csv-import-procs.tcl
tcl/intranet-csv-import-procs.tcl
+1
-0
import-im_project.tcl
www/import-im_project.tcl
+0
-10
No files found.
tcl/intranet-csv-import-procs.tcl
View file @
10d5fde1
...
...
@@ -38,6 +38,7 @@ ad_proc -public im_csv_import_guess_im_project { } {} {
{
start_date
"Start Date"
date
""
}
{
end_date
"end Date"
date
""
}
{
percent_completed
"Percent Completed"
number
""
}
{
project_lead_id
"Project Manager"
user_name
""
}
{
project_budget
"Budget"
number
""
}
{
project_budget_hours
"Budget Hours"
number
""
}
}
...
...
www/import-im_project.tcl
View file @
10d5fde1
...
...
@@ -327,18 +327,8 @@ foreach csv_line_fields $values_list_of_lists {
if
{
$ns
_write_p
}
{
ns_write
"<li><font color=brown>Warning: Didn't find customer_name='
$customer
_name', using 'internal' customer</font>
\n
"
}
}
# 'forgiving' routine -> project_lead_id might be empty or contain a name or email address.
# Check if empty:
if
{
""
eq
$project
_lead_id
}
{
if
{
$ns
_write_p
}
{
ns_write
"<li><font color=brown>Warning: No project manager found. Will try to create project w/o PM. </font>
\n
"
}
}
else
{
set project_lead
$project
_lead_id
set project_lead_tuple
[
im_csv_import_parser_user_name
$project
_lead
]
set project_lead_id
[
lindex
$project
_lead_tuple 0
]
set project_lead_error
[
lindex
$project
_lead_tuple 1
]
if
{
""
ne
$project
_lead_error
}
{
if
{
$ns
_write_p
}
{
ns_write
"<li><font color=brown>Warning: Error parsing project_lead '
$project
_lead':<br>
$project
_lead_error.</font>
\n
"
}
}
}
set customer_contact_id
""
...
...
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