Skip to content

Commit

Permalink
fix: Fix the way attribute value are updated by hibernate session [DH…
Browse files Browse the repository at this point in the history
…IS2-11852] (#8829)
  • Loading branch information
enricocolasante authored Sep 27, 2021
1 parent 563aafb commit d8fae6c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,13 @@ protected void handleTrackedEntityAttributeValues( Session session, TrackerPrehe

if ( attributeValue == null )
{
attributeValue = new TrackedEntityAttributeValue();
attributeValue = new TrackedEntityAttributeValue()
.setAttribute( attribute )
.setEntityInstance( trackedEntityInstance );
isNew = true;
}

attributeValue
.setAttribute( attribute )
.setEntityInstance( trackedEntityInstance )
.setValue( at.getValue() )
.setStoredBy( at.getStoredBy() );

Expand Down

0 comments on commit d8fae6c

Please sign in to comment.