 
             $loading.start($el.find(".level-name"))
 
-            $repo.save(value).then(onSuccess, onError)
+            $repo.save(issue).then(onSuccess, onError)
 
         $el.on "click", ".status-data", (event) ->
             event.preventDefault()


            issue = $model.$modelValue.clone()
            issue.priority = priority
            $model.$setViewValue(issue)

            onSuccess = ->
                $confirm.notify("success")
                $rootScope.$broadcast("history:reload")
                $loading.finish($el.find(".level-name"))
            onError = ->

            issue = $model.$modelValue.clone()
            issue.type = type

            onSuccess = ->
                $confirm.notify("success")
                $model.$setViewValue(issue)
                $rootScope.$broadcast("history:reload")
                $loading.finish($el.find(".level-name"))

            onError = ->
                $confirm.notify("error")
                issue.revert()
