Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADITO_Update_Upgrade
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab Maintenance 28.03.2025 | 20:00 - 23:00 MEZ
Show more breadcrumbs
xrm
ADITO_Update_Upgrade
Commits
3d2ac7cd
Commit
3d2ac7cd
authored
5 years ago
by
Johannes Goderbauer
Committed by
Benjamin Ulrich
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Importer-mapping-functions: iComm used wrong (-> old) column for is-it-standard-flag
parent
eaeadec6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
process/ImporterMappingFunctions_lib/process.js
+7
-7
7 additions, 7 deletions
process/ImporterMappingFunctions_lib/process.js
with
7 additions
and
7 deletions
process/ImporterMappingFunctions_lib/process.js
+
7
−
7
View file @
3d2ac7cd
...
...
@@ -15,10 +15,10 @@ import("Importer_lib");
// TODO: use SqlBuilder
/*
┌───────────────────────────────────────────────────────────────┐
│
toolkit methods for the import handler
│
│
DO NOT TOUCH - use lib_importerCustomMappingFunctions
│
└───────────────────────────────────────────────────────────────┘
+---------------------------------------------------------------+
toolkit methods for the import handler
DO NOT TOUCH - use lib_importerCustomMappingFunctions
+---------------------------------------------------------------+
*/
/*
...
...
@@ -366,13 +366,13 @@ function iComm(pObject) {
if
(
!
address
||
!
medium
||
!
contact
)
return
true
;
var
sql
=
"
select
"
+
this
.
getColumnCase
(
"
communicationid
"
)
+
"
from
"
+
this
.
getTableCase
(
"
communication
"
)
+
"
where
"
+
this
.
getColumnCase
(
"
contact_id
"
)
+
"
= ? and
"
+
this
.
getColumnCase
(
"
medium_id
"
)
+
"
= ? and
"
+
this
.
getColumnCase
(
"
isstandard
"
)
+
"
= ? and
"
+
this
.
getColumnCase
(
"
addr
"
)
+
"
= ?
"
+
"
where
"
+
this
.
getColumnCase
(
"
contact_id
"
)
+
"
= ? and
"
+
this
.
getColumnCase
(
"
medium_id
"
)
+
"
= ? and
"
+
this
.
getColumnCase
(
"
isstandard
"
)
+
"
= ? and
"
+
this
.
getColumnCase
(
"
addr
"
)
+
"
= ?
"
var
id
=
db
.
cell
([
sql
,
[[
contact
,
SQLTYPES
.
CHAR
],
[
medium
,
SQLTYPES
.
CHAR
],
//TODO: define types dynamically and not hardcoded
[
standard
,
SQLTYPES
.
SMALLINT
],
[
address
,
SQLTYPES
.
VARCHAR
]]],
this
.
Config
.
AliasTo
);
if
(
id
==
""
||
id
==
null
)
{
var
columns
=
[
this
.
getColumnCase
(
"
communicationid
"
),
this
.
getColumnCase
(
"
addr
"
),
this
.
getColumnCase
(
"
medium_id
"
),
this
.
getColumnCase
(
"
contact_id
"
),
this
.
getColumnCase
(
"
isstandard
"
)];
this
.
getColumnCase
(
"
medium_id
"
),
this
.
getColumnCase
(
"
contact_id
"
),
this
.
getColumnCase
(
"
isstandard
"
)];
this
.
insertData
(
this
.
getTableCase
(
"
communication
"
),
columns
,
null
,
[
util
.
getNewUUID
(),
address
,
medium
,
contact
,
standard
],
this
.
Config
.
AliasTo
);
}
return
true
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment