diff options
-rw-r--r-- | gnats-controller.lua | 14 | ||||
-rw-r--r-- | gnats-queryresult-html.lsp | 2 | ||||
-rw-r--r-- | gnats-report-html.lsp | 2 |
3 files changed, 11 insertions, 7 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({ diff --git a/gnats-queryresult-html.lsp b/gnats-queryresult-html.lsp index c47b919..2ef2eea 100644 --- a/gnats-queryresult-html.lsp +++ b/gnats-queryresult-html.lsp @@ -59,7 +59,7 @@ displayinfo(myform,tags,"viewonly") <DL> <? local myform = form.query.sfields -local tags = { "class", "release", "state", "priority", "severity", "responsible", "arrival_date", "closed_date", "last_modified", "originator", } +local tags = { "submitter_id", "class", "release", "state", "priority", "severity", "responsible", "arrival_date", "closed_date", "last_modified", "originator", } displayinfo(myform,tags,"viewonly") ?> </DL> diff --git a/gnats-report-html.lsp b/gnats-report-html.lsp index b438fa7..47ca45d 100644 --- a/gnats-report-html.lsp +++ b/gnats-report-html.lsp @@ -51,7 +51,7 @@ end <DL> <? local myform = form.reportform -local tags = { "reporter_name", "from", "reporter_id", "reporter_org" } +local tags = { "reporter_name", "from" } displayinfo(myform,tags) ?> </DL> |