Revert "Move create_temp_table to Reports Controller constructor out of Model one" (#729)

This reverts commit dc06119586.
This commit is contained in:
FrancescoUK
2016-07-09 12:50:17 +01:00
parent 55f7bef253
commit 0924a0f433
2 changed files with 6 additions and 6 deletions

View File

@@ -21,13 +21,8 @@ class Reports extends Secure_Controller
{
redirect('no_access/reports/reports_' . $submodule_id);
}
//Create our temp tables to work with the data in our report
$this->Sale->create_temp_table();
$this->Receiving->create_temp_table();
$this->Item->create_temp_table();
}
$this->load->helper('report');
}

View File

@@ -10,6 +10,11 @@ abstract class Report extends CI_Model
$this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate');
$this->output->set_header('Cache-Control: post-check=0, pre-check=0', FALSE);
$this->output->set_header('Pragma: no-cache');
//Create our temp tables to work with the data in our report
$this->Sale->create_temp_table();
$this->Receiving->create_temp_table();
$this->Item->create_temp_table();
}
//Returns the column names used for the report