Removed dateCreated from being cloned in tasks

This commit is contained in:
TheHollidayInn
2015-06-15 23:03:28 -05:00
parent b81024bdd6
commit e9269d332c
2 changed files with 3 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
function cloneTask(taskToClone, index, array) {
var tmpTask = {};
for( var property in taskToClone ) {
if ( property !== "_id" && property !== "id" ) {
if ( property !== "_id" && property !== "id" && property !== "dateCreated" ) {
tmpTask[property] = taskToClone[property];
}
}