Archived attachments not displayed in add attachment to document dropdown
This commit is contained in:
parent
b44422d14c
commit
65aaf2c0a2
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
<h2>Archived attachments</h2>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<th>Principle</th>
|
||||
|
|
|
|||
Loading…
Reference in a new issue