From 320c57df707590303f2baeab8d0737fd121b4fae Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 1 Oct 2014 15:44:47 +0000 Subject: Replace temporary session workaround for viewtable action with redir with GET parm in HTML view --- kamailio-model.lua | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'kamailio-model.lua') diff --git a/kamailio-model.lua b/kamailio-model.lua index 4d31093..37e6737 100644 --- a/kamailio-model.lua +++ b/kamailio-model.lua @@ -368,15 +368,7 @@ function mymodule.list_table_entries(self, clientdata) retval.fields = cfe({ type="list", value={}, label="List of Table Fields" }) retval.entries = cfe({ type="structure", value={}, label="List of Database Entries" }) - -- This is a temporary workaround due to redirect_to_referrer not including clientdata - if self.sessiondata and self.sessiondata.keydata and self.sessiondata.keydata[self.conf.prefix..self.conf.controller.."/"..self.conf.action] then - keydata = self.sessiondata.keydata[self.conf.prefix..self.conf.controller.."/"..self.conf.action] - if retval.table.value == "" and keydata.table then - retval.table.value = keydata.table - end - end - - local errtxt + local errtxt local res, err = pcall(function() local db = databasecreate() local connected = db.databaseconnect() @@ -397,12 +389,6 @@ function mymodule.list_table_entries(self, clientdata) errtxt = err end - -- This is a temporary workaround due to redirect_to_referrer not including clientdata - if retval.table.value ~= "" and not errtxt and self.sessiondata then - self.sessiondata.keydata = self.sessiondata.keydata or {} - self.sessiondata.keydata[self.conf.prefix..self.conf.controller.."/"..self.conf.action] = {table=retval.table.value} - end - return cfe({ type="group", value=retval, label="Database Table Entries", errtxt=errtxt }) end -- cgit v1.2.3