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
1f5ba259
Commit
1f5ba259
authored
May 09, 2012
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- CSV Import:
Fixed SOR issue importing program_id
parent
39e546d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
import-im_project.tcl
www/import-im_project.tcl
+12
-4
No files found.
www/import-im_project.tcl
View file @
1f5ba259
...
...
@@ -70,22 +70,30 @@ set values_list_of_lists [im_csv_get_values $lines_content $separator]
# ------------------------------------------------------------
# Get DynFields
set
dynfield_sql
{
# Determine the list of actually available fields.
set
mapped_vars
[
list
"''"
]
foreach
k
[
array
names map
]
{
lappend mapped_vars
"'
$map
(
$k
)'"
}
set
dynfield_sql
"
select distinct
aa.attribute_name,
aa.object_type,
aa.table_name,
w.parameters,
w.widget as tcl_widget,
substring
(
w.parameters from 'category_type
"(.*)
"
'
)
as category_type
substring(w.parameters from 'category_type
\"
(.*)
\
"
') as category_type
from im_dynfield_widgets w,
im_dynfield_attributes a,
acs_attributes aa
where a.widget_name = w.widget_name and
a.acs_attribute_id = aa.attribute_id and
aa.object_type in ('im_project', 'im_timesheet_task') and
(
also_hard_coded_p is null OR also_hard_coded_p = 'f'
)
}
(also_hard_coded_p is null OR also_hard_coded_p = 'f') and
-- Only overwrite DynFields specified in the mapping
aa.attribute_name in (
[
join
$mapped
_vars
","
]
)
"
set
attribute_names
[
db_list attribute_names
"
select distinct
...
...
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