Added accounts to the ledger entry grids, since it's tough to figure out what's going on without them. This exposed a problem with the controller name automatically being determined in the Links function, so it now looks for an optional controller parameter.

git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@141 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-15 23:22:38 +00:00
parent e9dd1366bc
commit 30b3185473
3 changed files with 36 additions and 14 deletions

View File

@@ -295,6 +295,8 @@ class AppController extends Controller {
foreach ($links AS $table => $fields) {
$controller = Inflector::pluralize(Inflector::underscore($table));
$id = 'id';
if (isset($fields['controller']))
$controller = $fields['controller'];
if (isset($fields['id']))
$id = $fields['id'];
foreach ($records AS &$record) {