I looked inside /index.php to see how DetailView was handled and found:
PHP Code:
///////////////////////////////////////////////////////////////////////////////
//// DETAIL VIEW-SPECIFIC RENDER CODE
//ifDetailView, set focus to record passed in
if($action == "DetailView") {
if(!isset($_REQUEST['record']))
die("A record number must be specified to view details.");
$GLOBALS['log']->debug('----> BEGIN DETAILVIEW TRACKER <----');
// if we are going to a detail form, load up the record now.
// Use the record to track the viewing.
// todo - Have a record of modules and thier primary object names.
$entity = $beanList[$currentModule];
require_once ($beanFiles[$entity]);
$focus = new $entity ();
$result = $focus->retrieve($_REQUEST['record']);
if($result) {
// Only track a viewing ifthe record was retrieved.
$focus->track_view($current_user->id, $currentModule);
}
$GLOBALS['log']->debug('----> END DETAILVIEW TRACKER <----');
}
//// END DETAIL-VIEW SPECIFIC RENDER CODE
///////////////////////////////////////////////////////////////////////////////
What is interesting, is that the line "END DETAILVIEW TRACKER" does not show up when I set logger4php to debug mode.
Neither does the die line "die("A record number must be specified to view details.");"
The SugarCRM Log shows the -->BEGIN DETAILVIEW but no END DETAILVIEW
Tue Aug 1 20:17:37 2006,760 [28200] INFO SugarCRM - In module: Contacts -- About to take action DetailView
Tue Aug 1 20:17:37 2006,760 [28200] DEBUG SugarCRM - in module Contacts -- in DetailView
Tue Aug 1 20:17:37 2006,760 [28200] DEBUG SugarCRM - ----------------------------------------------------------------------------------------------------------------------------------------------
Tue Aug 1 20:17:37 2006,761 [28200] INFO SugarCRM - current page is modules/Contacts/DetailView.php
Tue Aug 1 20:17:37 2006,761 [28200] INFO SugarCRM - current module is Contacts
Tue Aug 1 20:17:37 2006,762 [28200] INFO SugarCRM - Query:SELECT count(*) as the_count FROM config WHERE category='info' AND name='sugar_version' AND value = '4.2.1'
Tue Aug 1 20:17:37 2006,762 [28200] INFO SugarCRM - Query Execution Time:7.5999999999965E-05
Tue Aug 1 20:17:37 2006,763 [28200] DEBUG SugarCRM - current_language is: en_us
Tue Aug 1 20:17:37 2006,769 [28200] DEBUG SugarCRM - ----> BEGIN DETAILVIEW TRACKER <----
Tue Aug 1 20:17:37 2006,819 [28200] DEBUG SugarCRM - Retrieve Contact : SELECT contacts.* FROM contacts WHERE contacts.id = '7a3a2c71-5298-1bcc-45e8-44cfc9ff9de2'
Tue Aug 1 20:17:37 2006,820 [28200] DEBUG SugarCRM - Limit Query:SELECT contacts.* FROM contacts WHERE contacts.id = '7a3a2c71-5298-1bcc-45e8-44cfc9ff9de2' Start: 0 count: 1
Tue Aug 1 20:17:37 2006,820 [28200] INFO SugarCRM - Query:SELECT contacts.* FROM contacts WHERE contacts.id = '7a3a2c71-5298-1bcc-45e8-44cfc9ff9de2' LIMIT 0,1
Tue Aug 1 20:17:37 2006,821 [28200] INFO SugarCRM - Query Execution Time:0.00022800000000001
Tue Aug 1 20:17:37 2006,827 [28200] DEBUG SugarCRM - get_user_array query: SELECT id, first_name, last_name, user_name from users WHERE 1=1 AND is_group=0 order by user_name asc
Tue Aug 1 20:17:37 2006,828 [28200] INFO SugarCRM - Query:SELECT id, first_name, last_name, user_name from users WHERE 1=1 AND is_group=0 order by user_name asc
Tue Aug 1 20:17:37 2006,828 [28200] INFO SugarCRM - Query Execution Time:0.000108
Tue Aug 1 20:17:37 2006,829 [28200] INFO SugarCRM - Query:SELECT acc.id, acc.name, con_reports_to.first_name, con_reports_to.last_name
from contacts
left join accounts_contacts a_c on a_c.contact_id = '7a3a2c71-5298-1bcc-45e8-44cfc9ff9de2' and a_c.deleted=0
left join accounts acc on a_c.account_id = acc.id and acc.deleted=0
left join contacts con_reports_to on con_reports_to.id = contacts.reports_to_id
where contacts.id = '7a3a2c71-5298-1bcc-45e8-44cfc9ff9de2'
Tue Aug 1 20:17:37 2006,830 [28200] INFO SugarCRM - Query Execution Time:8.9999999999923E-05
Tue Aug 1 20:17:37 2006,830 [28200] DEBUG SugarCRM - SugarBean.load_relationships, Loading relationship (user_sync).
Tue Aug 1 20:17:37 2006,837 [28200] DEBUG SugarCRM - Link Constructor, relationship name: contacts_users
Tue Aug 1 20:17:37 2006,837 [28200] DEBUG SugarCRM - Link Constructor, Table name:
Tue Aug 1 20:17:37 2006,838 [28200] DEBUG SugarCRM - Link Constructor, Key name:
Tue Aug 1 20:17:37 2006,846 [28200] DEBUG SugarCRM - Link Constructor, _bean_table_name: contacts
Tue Aug 1 20:17:37 2006,847 [28200] DEBUG SugarCRM - Link Constructor, _bean_key_name: id
Tue Aug 1 20:17:37 2006,847 [28200] DEBUG SugarCRM - Link Constructor, relationship record found.
Tue Aug 1 20:17:37 2006,848 [28200] DEBUG SugarCRM - getQuery, Bean is LHS: 1
Tue Aug 1 20:17:37 2006,848 [28200] DEBUG SugarCRM - getQuery, Relationship type=many-to-many
Tue Aug 1 20:17:37 2006,849 [28200] DEBUG SugarCRM - getQuery, Relationship role column name=
Tue Aug 1 20:17:37 2006,849 [28200] DEBUG SugarCRM - Processing many-to-many.
Tue Aug 1 20:17:37 2006,850 [28200] DEBUG SugarCRM - Finding linked records Contact: SELECT users.id FROM users INNER JOIN contacts_users ON (users.id=contacts_users.user_id AND contacts_users.contact_id='7a3a2c71-5298-1bcc-45e8-44cfc9ff9de2') WHERE contacts_users.deleted=0 AND users.deleted=0 AND users.id = 'a4edf082-f69e-51a9-1719-44cfc3de62ed'
Tue Aug 1 20:17:37 2006,850 [28200] INFO SugarCRM - Query: SELECT users.id FROM users INNER JOIN contacts_users ON (users.id=contacts_users.user_id AND contacts_users.contact_id='7a3a2c71-5298-1bcc-45e8-44cfc9ff9de2') WHERE contacts_users.deleted=0 AND users.deleted=0 AND users.id = 'a4edf082-f69e-51a9-1719-44cfc3de62ed'
Tue Aug 1 20:17:37 2006,851 [28200] INFO SugarCRM - Query Execution Time:0.00011500000000009
Bookmarks