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";
|
echo "FAIL";
|
||||||
}
|
}
|
||||||
else {
|
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);
|
$this->set('attachments', $attachments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
|
<h2>Archived attachments</h2>
|
||||||
<table cellpadding="0" cellspacing="0">
|
<table cellpadding="0" cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Principle</th>
|
<th>Principle</th>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue