Moved contacts onto jqgrid. Added 'name' and 'longname' formats.
git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@120 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -78,6 +78,17 @@ class CustomersController extends AppController {
|
||||
return $conditions;
|
||||
}
|
||||
|
||||
function jqGridDataOrder(&$params, $index, $direction) {
|
||||
$order = parent::jqGridDataOrder($params, $index, $direction);
|
||||
if ($index === 'PrimaryContact.last_name') {
|
||||
$order[] = 'PrimaryContact.first_name ' . $direction;
|
||||
}
|
||||
if ($index === 'PrimaryContact.first_name') {
|
||||
$order[] = 'PrimaryContact.last_name ' . $direction;
|
||||
}
|
||||
return $order;
|
||||
}
|
||||
|
||||
function jqGridDataRecordCount(&$params, $model, $query) {
|
||||
|
||||
// We don't have a good way to use the query to obtain
|
||||
|
||||
Reference in New Issue
Block a user