-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
1.4
-
None
-
None
-
-
Empty show more show less
In MGNLRES-30 the update of the creation date was not committed. This has to be fixed. We should problably also set a creation date on the files which have no such date yet (in an update task)
The patch:
Index: InstallResourceTask.java =================================================================== --- InstallResourceTask.java (revision 39888) +++ InstallResourceTask.java (working copy) @@ -99,6 +99,12 @@ name = StringUtils.replace(name, ".", "-"); Content node = ContentUtil.getOrCreateContent(parent, name, ItemType.CONTENT); node.getMetaData().setTemplate(template); + if(node.getMetaData().getCreationDate() == null){ + node.getMetaData().setCreationDate(); + } + else{ + node.getMetaData().setModificationDate(); + } NodeDataUtil.getOrCreate(node, "text").setValue(content); NodeDataUtil.getOrCreate(node, "extension").setValue(extension); NodeDataUtil.getOrCreate(node, "version").setValue(version);
Acceptance criteria
- depends upon
-
MAGNOLIA-3437 Change activation menu in all trees to "Activate Changes" same as in Website tree
- Closed
- is related to
-
MAGNOLIA-3442 modification date is null for content that was not modified after creation
- Closed
- relates to
-
MGNLRES-62 Modification date of reinstalled resources
- Closed
- supersedes
-
MGNLRES-30 installation tasks should set the creation date
- Closed