Skip to content

Commit 9451856

Browse files
author
Peter Ajtai
committed
copy time
1 parent 2cca5fc commit 9451856

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

lib/db/mongodb/moveContent.js

+7
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ module.exports = (function () {
173173
_.each(dataContentEntries, function (item) {
174174
item.meta.node = destId;
175175
item._id = new ObjectId();
176+
item = _addCopyTime(item);
176177
pendingInsertContent.push(item);
177178
});
178179

@@ -205,6 +206,12 @@ module.exports = (function () {
205206
});
206207
}
207208

209+
function _addCopyTime(item) {
210+
var labelfield = item.meta.labelfield;
211+
item.fields[labelfield] = item.fields[labelfield] + ' - Copy: ' + new Date();
212+
return item;
213+
}
214+
208215
function move(op, from, to) {
209216
var deferred = q.defer(), self = this;
210217

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"name": "J.J. Idt"
2727
}
2828
],
29-
"version": "0.16.27",
29+
"version": "0.16.28",
3030
"repository": {
3131
"type": "git",
3232
"url": "https://github.com/Solid-Interactive/grasshopper-core-nodejs.git"

release_notes/0.16.28_2015-08-00.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.17.00
2+
3+
* Feature: Add copy time to copied content.

0 commit comments

Comments
 (0)