Skip to content

Commit

Permalink
Merge pull request #80 from realifetech/CTD-2090-tdc---be-add-additon…
Browse files Browse the repository at this point in the history
…alfields-to

CTD-2090 change variables
  • Loading branch information
tomrutherford-livestyled committed May 30, 2022
2 parents 70f6d93 + 913abc9 commit 4a96a46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion livestyled/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.3.6'
__version__ = '1.3.7'
2 changes: 1 addition & 1 deletion livestyled/models/tests/test_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_ticket_difference():
'dataType': 'string'
}])

difference = current.diff(new)
difference = new.diff(current)

assert difference == {
'additional_fields': [
Expand Down
4 changes: 2 additions & 2 deletions livestyled/models/ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ def diff(self, other):
if getattr(self, field) != getattr(other, field):
if field == 'additional_fields':
additional_fields = []
for current in getattr(self, field):
for new in getattr(other, field):
for current in getattr(other, field):
for new in getattr(self, field):
if current['sort'] == new['sort']:
for key in current.keys():
current[key] = new[key]
Expand Down

0 comments on commit 4a96a46

Please sign in to comment.