mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: validation for issue activity description (#1887)
This commit is contained in:
parent
10dface85d
commit
b24622e5ef
@ -184,6 +184,11 @@ def track_description(
|
|||||||
if current_instance.get("description_html") != requested_data.get(
|
if current_instance.get("description_html") != requested_data.get(
|
||||||
"description_html"
|
"description_html"
|
||||||
):
|
):
|
||||||
|
last_activity = IssueActivity.objects.filter(issue_id=issue_id).order_by("-created_at").first()
|
||||||
|
if(last_activity is not None and last_activity.field == "description" and actor.id == last_activity.actor_id):
|
||||||
|
last_activity.created_at = timezone.now()
|
||||||
|
last_activity.save(update_fields=["created_at"])
|
||||||
|
else:
|
||||||
issue_activities.append(
|
issue_activities.append(
|
||||||
IssueActivity(
|
IssueActivity(
|
||||||
issue_id=issue_id,
|
issue_id=issue_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user