Fixed
Details
Priority
MediumAssignee
Fabian PichlerFabian PichlerReporter
Marc SladekMarc SladekLabels
Story Points
0.5Sprint
NoneFix versions
Details
Details
Priority
Assignee
Fabian Pichler
Fabian PichlerReporter
Marc Sladek
Marc SladekLabels
Story Points
0.5
Sprint
None
Fix versions
Clockify
Clockify
Clockify
Created 31 July 2018 at 14:14
Updated 23 December 2024 at 08:22
Resolved 23 December 2024 at 08:22
XClassCreator#createXClass
always saves because theequals
check doesn't work properly. This causes a new history entry on every server start:http://msladek.cel.sneakapeek.ch/edit/Celements2/PageType?editor=history
Add additonal logging to see what happens, e.g.:
private void logXClassInDetails(BaseClass generatedXClass, BaseClass actualXClass) { for (String fieldName : Sets.union(generatedXClass.getPropertyList(), actualXClass.getPropertyList())) { if (!Objects.equals(generatedXClass.get(fieldName), actualXClass.get(fieldName))) { LOGGER.trace("field '{}' changed", fieldName); } } }