Fix error: undefined is not a function (evaluating \'$scope.us.revert()\')

stable
David Barragán Merino 2014-11-14 01:10:31 +01:00
parent b9baa28932
commit 7248d7e02f
1 changed files with 2 additions and 2 deletions

View File

@ -240,13 +240,13 @@ CreateEditUserstoryDirective = ($repo, $model, $rs, $rootScope, lightboxService,
$scope.isNew = true
$scope.usStatusList = statusList
$scope.us = {
$scope.us = $model.make_model("userstories", {
project: projectId
points : {}
status: status
is_archived: false
tags: []
}
})
# Update texts for creation
$el.find(".button-green span").html("Create") #TODO: i18n