diff options
Diffstat (limited to 'gnats-controller.lua')
-rw-r--r-- | gnats-controller.lua | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gnats-controller.lua b/gnats-controller.lua index 57eb3f3..26cc67a 100644 --- a/gnats-controller.lua +++ b/gnats-controller.lua @@ -120,6 +120,7 @@ function status(self) return { status=self.model.getstatus() } end +--[[ function expert(self) local modifications = self.clientdata.filecontent or "" if ( self.clientdata.cmdsave ) then @@ -194,7 +195,7 @@ function edit(self) startstop = startstop, } end - +--]] function query(self) local query = {} @@ -378,15 +379,17 @@ function summary(self) -- Set the search criterias self.model:set_search_criteria(s) - local orgsummary = self.model:summary() + local summary = self.model:summary() - -- Hide unwanted records - local summary = {} +--[[ -- Hide unwanted records + local modsummary = {} for k,v in pairs(orgsummary) do if not ((orgsummary[k]['state'] == "closed") and ((orgsummary[k]['category'] == "test") or (orgsummary[k]['category'] == "spam"))) then - table.insert(summary, v) + table.insert(modsummary, v) end end + summary = modsummary +--]] return { option={ script=ENV["SCRIPT_NAME"], @@ -407,6 +410,7 @@ function report(self) "synopsis","severity","priority","category","class","release","environment", "description", "howtorepeat", "fix", } + self.clientdata.reporter_id = "web-users" for k,val in pairs(alltags) do reportform[val] = cfe({ |