Add php files
This commit is contained in:
17
custom/application/Ext/Utils/custom_utils.ext.php
Executable file
17
custom/application/Ext/Utils/custom_utils.ext.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
function getSubpanelQueryParts($params)
|
||||
{
|
||||
$bean = $GLOBALS['app']->controller->bean;
|
||||
|
||||
$return_array['select']='SELECT meetings.id ';
|
||||
$return_array['from']='FROM meetings ';
|
||||
$return_array['where']=" WHERE meetings.parent_id = '$bean->id'
|
||||
AND meetings.parent_type = 'Leads' AND meetings.id NOT IN ( SELECT meeting_id FROM meetings_leads ) ";
|
||||
$return_array['join'] = "";
|
||||
$return_array['join_tables'][0] = '';
|
||||
echo 'lol';
|
||||
echo $bean->id;
|
||||
|
||||
return $return_array;
|
||||
}
|
||||
Reference in New Issue
Block a user