Merge "Don't try to update tasks if they don't have an ID"

This commit is contained in:
Jenkins 2016-04-27 21:41:31 +00:00 committed by Gerrit Code Review
commit 621ed42c72

View File

@ -360,10 +360,12 @@ angular.module('sb.story').controller('StoryDetailController',
task[fieldName] = value;
}
task.$update(function () {
$scope.showTaskEditForm = false;
$scope.loadEvents();
});
if(!!task.id) {
task.$update(function () {
$scope.showTaskEditForm = false;
$scope.loadEvents();
});
}
};
/**