summaryrefslogtreecommitdiffstats
path: root/gnats-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gnats-controller.lua')
-rw-r--r--gnats-controller.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/gnats-controller.lua b/gnats-controller.lua
index 03df468..7826c69 100644
--- a/gnats-controller.lua
+++ b/gnats-controller.lua
@@ -147,9 +147,7 @@ function edit(self)
if not (filedetailsresult) then
- self.conf.action = "status"
- self.conf.type = "redir"
- error (self.conf)
+ redirect(self, "status")
end
-- Add a cmd button to the view
@@ -506,9 +504,7 @@ function report(self)
local bugreportsuccess, bugreport = self.model:sendbug(bugreport)
if (bugreportsuccess) then
- self.conf.action = "reportsuccess"
- self.conf.type = "redir"
- error (self.conf)
+ redirect(self, "reportsuccess")
end
reportform.submit.errtxt = "Something went wrong because the report could not be sent.\n" .. bugreport
end