diff --git a/app/controllers/documents_controller.php b/app/controllers/documents_controller.php index c11ad9a3..0e0c0d21 100755 --- a/app/controllers/documents_controller.php +++ b/app/controllers/documents_controller.php @@ -16,7 +16,7 @@ class DocumentsController extends AppController { function index() { $this->Document->recursive = 0; //$this->set('documents', $this->paginate()); - $this->set('documents', $this->query("select id,type,created,user_id,pdf_filename,pdf_created_at, pdf_created_by_user_id FROM documents As Document;")); + $this->set('documents', $this->Document->query("select id,type,created,user_id,pdf_filename,pdf_created_at, pdf_created_by_user_id FROM documents As Document;")); $this->set('users', $this->Document->User->getUsersList()); }