From c722da6c493705d2aa4b3a4184f0a7b164ba8b04 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Fri, 23 Mar 2018 19:17:20 +0700 Subject: [PATCH] Fix comment replies being duplicated during S/R Turns out it was quite simple: the reply GUIDs weren't being tracked by PHP and sent to the Javascript frontend, so when the frontend created a new reply and updated the entire list of replies, it sent a list with no GUIDs in it. Simply keeping track of the reply GUIDs in PHP is enough to get rid of this bug. Former-commit-id: 9213336c7eb32a2efff33d469edaecf61f7eec82 --- src/Api/Model/Languageforge/Lexicon/LexCommentReply.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Api/Model/Languageforge/Lexicon/LexCommentReply.php b/src/Api/Model/Languageforge/Lexicon/LexCommentReply.php index 59451ac37f..698f628e12 100644 --- a/src/Api/Model/Languageforge/Lexicon/LexCommentReply.php +++ b/src/Api/Model/Languageforge/Lexicon/LexCommentReply.php @@ -23,6 +23,9 @@ public function __construct($content = '') /** @var string */ public $id; + /** @var string */ + public $guid; + /** @var boolean */ public $isDeleted; }