Merge "Don't try to update tasks if they don't have an ID"
This commit is contained in:
commit
621ed42c72
@ -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();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user