From a545b74a1b5874c132eac51a66df5f76299d6adb Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Mon, 8 Apr 2013 22:42:22 +1000 Subject: [PATCH] Quick fix for the attachments index --- app/controllers/attachments_controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/attachments_controller.php b/app/controllers/attachments_controller.php index a797fe96..d486e930 100644 --- a/app/controllers/attachments_controller.php +++ b/app/controllers/attachments_controller.php @@ -7,8 +7,9 @@ class AttachmentsController extends AppController { var $paginate = array( - 'contain' => false, 'limit' => 5000, + 'order' => 'Attachment.principle_id asc, Attachment.id desc', + );