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
e11a46ac
Commit
e11a46ac
authored
Apr 13, 2018
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed translation or profiles (now: disabled)
for import of employees
parent
10847603
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
import-person.tcl
www/import-person.tcl
+3
-2
No files found.
www/import-person.tcl
View file @
e11a46ac
...
...
@@ -209,7 +209,7 @@ foreach csv_line_fields $values_list_of_lists {
}
# Get all profiles in the system and store them in an array
foreach profile_tuple
[
im_profile::profile_options_all
]
{
foreach profile_tuple
[
im_profile::profile_options_all
-translate_p 0
]
{
set profile_name
[
lindex
$profile
_tuple 0
]
regsub -all {
\[
}
$profile
_name {} profile_name
regsub -all {
\]
}
$profile
_name {} profile_name
...
...
@@ -389,7 +389,7 @@ foreach csv_line_fields $values_list_of_lists {
continue
}
if {
$ns
_write_p} { ns_write "
<li>import-person: Create
e
user: <a href=
\"
/intranet/users/view?user_id=$user_id
\"
>$first_names
$last
_name
(
$email
)
</a></li></li>
\n
" }
if {
$ns
_write_p} { ns_write "
<li>import-person: Create user: <a href=
\"
/intranet/users/view?user_id=$user_id
\"
>$first_names
$last
_name
(
$email
)
</a></li></li>
\n
" }
# Write Audit Trail
im_audit -object_id
$user
_id -action after_create
...
...
@@ -436,6 +436,7 @@ foreach csv_line_fields $values_list_of_lists {
# Assign users to profiles
#
if
{
$ns
_write_p
}
{
ns_write
"<li>Trying to match profiles found (
[
split
$profiles
","
]
) to one or more of the following profiles:
[
array
names profile_arr
]
</li>"
}
foreach profile
[
split
$profiles
","
]
{
# remove brackets
regsub -all
{
\[
}
$profile
{}
profile
...
...
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