Fixed Search controller prob
This commit is contained in:
parent
0790043afe
commit
36446f7fcd
|
|
@ -460,7 +460,7 @@ class EnquiriesController extends AppController {
|
|||
|
||||
$customerResults = $this->Enquiry->Customer->find('all', array('conditions' => $custConditions, 'recursive'=>0));
|
||||
$enquiryResults = $this->Enquiry->find('all', array('conditions'=>$enqConditions, 'recursive'=>0));
|
||||
$contactResults = $this->Enquiry->find('all', array('conditions'=>$contactConditions, 'recursive'=>0));
|
||||
$contactResults = $this->Enquiry->Contact->find('all', array('conditions'=>$contactConditions, 'recursive'=>0));
|
||||
|
||||
$searchDone = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -122,3 +122,8 @@
|
|||
<?php endforeach;?>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if( ($contactCount == 0) && ($enqCount == 0) && ($custCount == 0) ) {
|
||||
echo "<h2>No matching records found :( Try modifying your search terms</h2>";
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
echo $html->image('system-search.png');
|
||||
echo '</h2>';
|
||||
echo "<p>Enter part of an Enquiry Number, Customer Name or Contact Name</p>";
|
||||
echo $form->input('Enquiry.search_string', array('label'=>'Search', 'id'=>'searchString'));
|
||||
echo $form->input('Enquiry.search_string', array('label'=>false, 'id'=>'searchString'));
|
||||
|
||||
//echo $form->input('Customer.id', array('type'=>'hidden'));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue