Fixed Job index listing
This commit is contained in:
parent
d06ceef2ae
commit
b20e930935
|
|
@ -4,6 +4,15 @@ class JobsController extends AppController {
|
||||||
var $name = 'Jobs';
|
var $name = 'Jobs';
|
||||||
var $helpers = array('Html', 'Form');
|
var $helpers = array('Html', 'Form');
|
||||||
|
|
||||||
|
|
||||||
|
var $paginate = array(
|
||||||
|
|
||||||
|
'contain' => false,
|
||||||
|
'limit' => 150,
|
||||||
|
'order'=>array('Job.id' => 'desc')
|
||||||
|
|
||||||
|
);
|
||||||
|
|
||||||
function index() {
|
function index() {
|
||||||
//$this->Job->recursive = 1;
|
//$this->Job->recursive = 1;
|
||||||
$this->set('jobs', $this->paginate());
|
$this->set('jobs', $this->paginate());
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,9 @@ class Job extends AppModel {
|
||||||
'shipment_category' => array('notempty')
|
'shipment_category' => array('notempty')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
||||||
var $belongsTo = array(
|
var $belongsTo = array(
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue