Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xrm
basic
Commits
39906d1f
Commit
39906d1f
authored
4 years ago
by
S.Listl
Browse files
Options
Downloads
Patches
Plain Diff
1057920 Loghistory didn't work for ObjectSelection attributes
parent
7bc81126
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
process/Loghistory_lib/process.js
+11
-1
11 additions, 1 deletion
process/Loghistory_lib/process.js
with
11 additions
and
1 deletion
process/Loghistory_lib/process.js
+
11
−
1
View file @
39906d1f
...
...
@@ -150,6 +150,8 @@ LogHistoryExecutor.prototype.execute = function ()
{
description
.
push
(
translate
.
withArguments
(
"
%0 from
\"
%1
\"
to
\"
%2
\"
"
,
[
conf
.
Description
,
olddata
[
0
],
newdata
[
0
]],
this
.
translationLanguage
));
}
else
description
.
push
(
conf
.
Description
+
"
"
+
newdata
[
0
]);
}
if
(
conf
.
RefTable
)
this
.
affectedTable
=
conf
.
RefTable
;
}
//no extra tables
...
...
@@ -284,7 +286,15 @@ LogHistoryExecutor.prototype._getDataForExtras = function(pId, pValues)
if
(
this
.
affectedTable
==
"
AB_ATTRIBUTERELATION
"
)
{
data
[
0
]
=
AttributeUtil
.
getFullAttributeName
(
pId
);
data
[
1
]
=
AttributeRelationUtils
.
selectAttributeValue
(
pId
,
pValues
,
true
);
//if the attribute type is "OBJECTSELECTION", entities.getRow is used for resolving the displayValue, that can cause an error
try
{
data
[
1
]
=
AttributeRelationUtils
.
selectAttributeValue
(
pId
,
pValues
,
true
);
}
catch
(
err
)
{
logging
.
log
(
err
);
data
[
1
]
=
null
;
}
}
else
if
(
this
.
affectedTable
==
"
COMMUNICATION
"
)
{
...
...
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