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
bcf902d4
Commit
bcf902d4
authored
5 years ago
by
Sebastian Listl
Browse files
Options
Downloads
Patches
Plain Diff
Attribute_lib update usages fix
parent
39c162bf
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/Attribute_lib/process.js
+2
-2
2 additions, 2 deletions
process/Attribute_lib/process.js
with
2 additions
and
2 deletions
process/Attribute_lib/process.js
+
2
−
2
View file @
bcf902d4
...
...
@@ -1079,7 +1079,7 @@ AttributeUsageUtil.insertChildrenUsages = function (pAttributeId, pObjectType)
*/
AttributeUsageUtil
.
updateChildrenUsages
=
function
(
pAttributeId
,
pOldObjectType
,
pNewObjectType
)
{
if
(
!
pNewObjectType
||
!
pAttributeId
)
if
(
!
pNewObjectType
||
!
pAttributeId
||
!
pOldObjectType
)
return
;
var
table
=
"
AB_ATTRIBUTEUSAGE
"
;
...
...
@@ -1114,7 +1114,7 @@ AttributeUsageUtil.updateChildrenUsages = function (pAttributeId, pOldObjectType
var
condition
=
SqlCondition
.
begin
()
.
andPrepare
(
"
AB_ATTRIBUTE.ATTRIBUTE_TYPE
"
,
$AttributeTypes
.
COMBOVALUE
,
"
# != ?
"
)
.
andPrepare
(
"
AB_ATTRIBUTE.ATTRIBUTE_PARENT_ID
"
,
pAttributeId
);
var
query
=
sqlSelect
.
where
(
condition
);
var
query
=
sqlSelect
.
clearWhere
().
where
(
condition
);
var
attributes
=
db
.
table
(
query
.
build
());
attributes
.
forEach
(
function
(
row
)
...
...
This diff is collapsed.
Click to expand it.
Sebastian Listl
@s.listl
mentioned in commit
f60aa852
·
5 years ago
mentioned in commit
f60aa852
mentioned in commit f60aa85254e071b8a74405744060ef6b5649d7f1
Toggle commit list
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