Skip to content

Commit

Permalink
Merge pull request #327 from multiflexi/another_value_desc_fix
Browse files Browse the repository at this point in the history
Update value desc only if found
  • Loading branch information
Progress1 authored Jul 26, 2024
2 parents d3406a0 + 9674228 commit 461050b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/core/model/report_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,12 +705,13 @@ def update_report_item(cls, id, data, user):
data["attribute_value"] = ""
attribute.user = user
attribute.last_updated = datetime.now()
if attribute.value_description != data["value_description"]:
modified = True
attribute.value_description = data["value_description"]
data["value_description"] = ""
attribute.user = user
attribute.last_updated = datetime.now()
if data.get("value_description", False):
if attribute.value_description != data["value_description"]:
modified = True
attribute.value_description = data["value_description"]
data["value_description"] = ""
attribute.user = user
attribute.last_updated = datetime.now()
break

if "add" in data:
Expand Down

0 comments on commit 461050b

Please sign in to comment.