Branch: refs/heads/XWIKI-22978-2
Home:
https://github.com/xwiki/xwiki-platform
Commit: bae0a0ff95ba6357e5546d5ffebb49f0758ef337
https://github.com/xwiki/xwiki-platform/commit/bae0a0ff95ba6357e5546d5ffebb…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2025-03-27 (Thu, 27 Mar 2025)
Changed paths:
M
xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-resources/src/main/resources/flamingo/commentsinline.vm
M
xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/comments2.vm
Log Message:
-----------
XWIKI-22978: Comments are not ordered by date
Provide a quickfix for ordering the comments directly in
commentsinline.vm. Since we cannot call directly $collectiontool.sort
because the Object property cannot be accessed by beanutils, we build a
map indexed by date and we perform the ordering manually, taking into
account the rare possibility that 2 comments have been added at exact
same date.
Also all this work is duplicated in comments2.vm for fixing it in old
PDF export.
Note that ideally all this work should be refactored with a proper Java
API for comments, see also XWIKI-23049.
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-platform/settings/notifications