Modified the filtering behavior; A filter specified as 'Table.field' results in the obvious split (Table, field); 'Table' results in (Table, id); 'field' results in (ModelTable, field). Fixed a bug in the app controller which was allowing 'fields' to leak into the top level of 'link'

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@430 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-30 19:45:19 +00:00
parent de0cf6467a
commit e7e3dbc559
12 changed files with 33 additions and 26 deletions

View File

@@ -63,8 +63,8 @@ foreach ($depositTypes AS $type) {
'grid_setup' => array('hiddengrid' => true),
'caption' => ('<A HREF="#" ONCLICK="$(\'#'.$grid_div_id.' .HeaderButton\').click();'.
' return false;">Items in '.$type['name'].' Ledger</A>'),
'filter' => array('Tender.deposit_transaction_id' => null,
'Tender.tender_type_id' => $type['id']),
'filter' => array('deposit_transaction_id' => null,
'TenderType.id' => $type['id']),
'exclude' => array('Type'),
),
));

View File

@@ -88,7 +88,7 @@ echo $this->element('ledger_entries', array
(// Grid configuration
'config' => array
('caption' => "Ledger Entries",
'filter' => array('tender_id' => $tender['id']),
'filter' => array('Tender.id' => $tender['id']),
'exclude' => array('Tender'),
)));