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
0605b126
Commit
0605b126
authored
Sep 12, 2013
by
uibk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- CSV Importer:
Importing projects
parent
70e94c85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
import-im_project.tcl
www/import-im_project.tcl
+11
-0
No files found.
www/import-im_project.tcl
View file @
0605b126
...
...
@@ -290,6 +290,17 @@ foreach csv_line_fields $values_list_of_lists {
set project_type_id
[
im_project_type_other
]
}
# start_date and end_date are required fields
if
{
""
==
$start
_date
}
{
if
{
$ns
_write_p
}
{
ns_write
"<li><font color=brown>Warning: Didn't find project start_date, using today.</font>
\n
"
}
set start_date
[
db_string today
"select now()::date from dual"
]
}
if
{
""
==
$end
_date
}
{
if
{
$ns
_write_p
}
{
ns_write
"<li><font color=brown>Warning: Didn't find project end_date, using today.</font>
\n
"
}
set end_date
[
db_string today
"select now()::date from dual"
]
}
# On track status can be NULL without problems
set on_track_status_id
[
im_id_from_category
[
list
$on
_track_status
]
"Intranet Project On Track Status"
]
...
...
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