mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Removed dateCreated from being cloned in tasks
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user