diff --git a/app/controllers/documents_controller.php b/app/controllers/documents_controller.php index e431a65e..6ce16c31 100755 --- a/app/controllers/documents_controller.php +++ b/app/controllers/documents_controller.php @@ -111,7 +111,7 @@ class DocumentsController extends AppController { echo "FAIL"; } else { - $attachments = $this->Document->DocumentAttachment->Attachment->find('all', array('conditions'=>array('principle_id'=> $principleID))); + $attachments = $this->Document->DocumentAttachment->Attachment->find('all', array('conditions'=>array('principle_id'=> $principleID, 'archived'=>0))); $this->set('attachments', $attachments); } } diff --git a/app/views/attachments/archived.ctp b/app/views/attachments/archived.ctp index 524741ff..d624e24f 100644 --- a/app/views/attachments/archived.ctp +++ b/app/views/attachments/archived.ctp @@ -1,4 +1,4 @@ - +
| Principle |
|---|