diff options
Diffstat (limited to 'rrdtool-controller.lua')
-rw-r--r-- | rrdtool-controller.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rrdtool-controller.lua b/rrdtool-controller.lua index 7aef79c..9d00065 100644 --- a/rrdtool-controller.lua +++ b/rrdtool-controller.lua @@ -29,8 +29,9 @@ function listrrd(self) end function createrrd(self) - return controllerfunctions.handle_form(self, self.model.createnewrrd, self.model.write_file, self.clientdata, "Save", "Edit Interfaces file", "File saved") - + return controllerfunctions.handle_form(self, self.model.createnewrrd, function(value) + return self.model.savenewrrd(self, value, sessiondata.userinfo.userid) + end, self.clientdata, "Save", "Create new RRD", "File saved") end function delete(self) |