Test Failed
Push — CI ( 0f01dd...c95a04 )
by Adam
55:13
created
modules/AOK_KnowledgeBase/AOK_KnowledgeBase.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@
 block discarded – undo
43 43
 require_once('modules/AOK_KnowledgeBase/AOK_KnowledgeBase_sugar.php');
44 44
 class AOK_KnowledgeBase extends AOK_KnowledgeBase_sugar {
45 45
 	
46
-	function AOK_KnowledgeBase(){	
47
-		parent::AOK_KnowledgeBase_sugar();
48
-	}
46
+    function AOK_KnowledgeBase(){	
47
+        parent::AOK_KnowledgeBase_sugar();
48
+    }
49 49
 	
50 50
 }
51 51
 ?>
52 52
\ No newline at end of file
Please login to merge, or discard this patch.
modules/FP_Event_Locations/FP_Event_Locations.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@
 block discarded – undo
43 43
 require_once('modules/FP_Event_Locations/FP_Event_Locations_sugar.php');
44 44
 class FP_Event_Locations extends FP_Event_Locations_sugar {
45 45
 	
46
-	function FP_Event_Locations(){	
47
-		parent::FP_Event_Locations_sugar();
48
-	}
46
+    function FP_Event_Locations(){	
47
+        parent::FP_Event_Locations_sugar();
48
+    }
49 49
 	
50 50
 }
51 51
 ?>
52 52
\ No newline at end of file
Please login to merge, or discard this patch.
modules/FP_Event_Locations/FP_Event_Locations_sugar.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -45,36 +45,36 @@
 block discarded – undo
45 45
 
46 46
 
47 47
 class FP_Event_Locations_sugar extends Basic {
48
-	var $new_schema = true;
49
-	var $module_dir = 'FP_Event_Locations';
50
-	var $object_name = 'FP_Event_Locations';
51
-	var $table_name = 'fp_event_locations';
52
-	var $importable = false;
53
-	var $disable_row_level_security = true ; // to ensure that modules created and deployed under CE will continue to function under team security if the instance is upgraded to PRO
54
-		var $id;
55
-		var $name;
56
-		var $date_entered;
57
-		var $date_modified;
58
-		var $modified_user_id;
59
-		var $modified_by_name;
60
-		var $created_by;
61
-		var $created_by_name;
62
-		var $description;
63
-		var $deleted;
64
-		var $created_by_link;
65
-		var $modified_user_link;
66
-		var $assigned_user_id;
67
-		var $assigned_user_name;
68
-		var $assigned_user_link;
69
-		function FP_Event_Locations_sugar(){	
70
-		parent::Basic();
71
-	}
48
+    var $new_schema = true;
49
+    var $module_dir = 'FP_Event_Locations';
50
+    var $object_name = 'FP_Event_Locations';
51
+    var $table_name = 'fp_event_locations';
52
+    var $importable = false;
53
+    var $disable_row_level_security = true ; // to ensure that modules created and deployed under CE will continue to function under team security if the instance is upgraded to PRO
54
+        var $id;
55
+        var $name;
56
+        var $date_entered;
57
+        var $date_modified;
58
+        var $modified_user_id;
59
+        var $modified_by_name;
60
+        var $created_by;
61
+        var $created_by_name;
62
+        var $description;
63
+        var $deleted;
64
+        var $created_by_link;
65
+        var $modified_user_link;
66
+        var $assigned_user_id;
67
+        var $assigned_user_name;
68
+        var $assigned_user_link;
69
+        function FP_Event_Locations_sugar(){	
70
+        parent::Basic();
71
+    }
72 72
 	
73
-	function bean_implements($interface){
74
-		switch($interface){
75
-			case 'ACL': return true;
76
-		}
77
-		return false;
73
+    function bean_implements($interface){
74
+        switch($interface){
75
+            case 'ACL': return true;
76
+        }
77
+        return false;
78 78
 }
79 79
 		
80 80
 }
Please login to merge, or discard this patch.
modules/Prospects/ProspectFormBase.php 1 patch
Indentation   +165 added lines, -165 removed lines patch added patch discarded remove patch
@@ -49,95 +49,95 @@  discard block
 block discarded – undo
49 49
 class ProspectFormBase  {
50 50
 
51 51
 function checkForDuplicates($prefix){
52
-	global $local_log;
53
-	require_once('include/formbase.php');
52
+    global $local_log;
53
+    require_once('include/formbase.php');
54 54
 	
55
-	$focus = new Prospect();
56
-	if(!checkRequired($prefix, array_keys($focus->required_fields))){
57
-		return null;
58
-	}
59
-	$query = '';
60
-	$baseQuery = 'select id,first_name, last_name, title, email1, email2  from prospects where deleted!=1 and (';
61
-	if(!empty($_POST[$prefix.'first_name']) && !empty($_POST[$prefix.'last_name'])){
62
-		$query = $baseQuery ."  (first_name like '". $_POST[$prefix.'first_name'] . "%' and last_name = '". $_POST[$prefix.'last_name'] ."')";
63
-	}else{
64
-			$query = $baseQuery ."  last_name = '". $_POST[$prefix.'last_name'] ."'";
65
-	}
66
-	if(!empty($_POST[$prefix.'email1'])){
67
-		if(empty($query)){
68
-		$query = $baseQuery. "  email1='". $_POST[$prefix.'email1'] . "' or email2 = '". $_POST[$prefix.'email1'] ."'";
69
-		}else {
70
-			$query .= "or email1='". $_POST[$prefix.'email1'] . "' or email2 = '". $_POST[$prefix.'email1'] ."'";
71
-		}
72
-	}
73
-	if(!empty($_POST[$prefix.'email2'])){
74
-		if(empty($query))	{
75
-			$query = $baseQuery. "  email1='". $_POST[$prefix.'email2'] . "' or email2 = '". $_POST[$prefix.'email2'] ."'";
76
-		}else{
77
-			$query .= "or email1='". $_POST[$prefix.'email2'] . "' or email2 = '". $_POST[$prefix.'email2'] ."'";
78
-		}
79
-
80
-	}
81
-
82
-	if(!empty($query)){
83
-		$rows = array();
55
+    $focus = new Prospect();
56
+    if(!checkRequired($prefix, array_keys($focus->required_fields))){
57
+        return null;
58
+    }
59
+    $query = '';
60
+    $baseQuery = 'select id,first_name, last_name, title, email1, email2  from prospects where deleted!=1 and (';
61
+    if(!empty($_POST[$prefix.'first_name']) && !empty($_POST[$prefix.'last_name'])){
62
+        $query = $baseQuery ."  (first_name like '". $_POST[$prefix.'first_name'] . "%' and last_name = '". $_POST[$prefix.'last_name'] ."')";
63
+    }else{
64
+            $query = $baseQuery ."  last_name = '". $_POST[$prefix.'last_name'] ."'";
65
+    }
66
+    if(!empty($_POST[$prefix.'email1'])){
67
+        if(empty($query)){
68
+        $query = $baseQuery. "  email1='". $_POST[$prefix.'email1'] . "' or email2 = '". $_POST[$prefix.'email1'] ."'";
69
+        }else {
70
+            $query .= "or email1='". $_POST[$prefix.'email1'] . "' or email2 = '". $_POST[$prefix.'email1'] ."'";
71
+        }
72
+    }
73
+    if(!empty($_POST[$prefix.'email2'])){
74
+        if(empty($query))	{
75
+            $query = $baseQuery. "  email1='". $_POST[$prefix.'email2'] . "' or email2 = '". $_POST[$prefix.'email2'] ."'";
76
+        }else{
77
+            $query .= "or email1='". $_POST[$prefix.'email2'] . "' or email2 = '". $_POST[$prefix.'email2'] ."'";
78
+        }
79
+
80
+    }
81
+
82
+    if(!empty($query)){
83
+        $rows = array();
84 84
 		
85
-		$db = DBManagerFactory::getInstance();
86
-		$result = $db->query($query.');');
85
+        $db = DBManagerFactory::getInstance();
86
+        $result = $db->query($query.');');
87 87
         while($row = $db->fetchByAssoc($result)) {
88 88
             $rows[] = $row;
89
-		}
90
-		if(count($rows) > 0) return $rows;
91
-		}
92
-	return null;
89
+        }
90
+        if(count($rows) > 0) return $rows;
91
+        }
92
+    return null;
93 93
 }
94 94
 
95 95
 
96 96
 function buildTableForm($rows, $mod=''){
97
-	global $action;
98
-	if(!empty($mod)){
99
-	global $current_language;
100
-	$mod_strings = return_module_language($current_language, $mod);
101
-	}else global $mod_strings;
102
-	global $app_strings;
103
-	$cols = sizeof($rows[0]) * 2 + 1;
104
-	if ($action != 'ShowDuplicates') 
105
-	{
106
-		$form = '<table width="100%"><tr><td>'.$mod_strings['MSG_DUPLICATE']. '</td></tr><tr><td height="20"></td></tr></table>';
107
-		$form .= "<form action='index.php' method='post' name='dupProspects'><input type='hidden' name='selectedProspect' value=''>";
108
-	}
109
-	else 
110
-	{
111
-		$form = '<table width="100%"><tr><td>'.$mod_strings['MSG_SHOW_DUPLICATES']. '</td></tr><tr><td height="20"></td></tr></table>';
112
-	}
113
-	$form .= get_form_header($mod_strings['LBL_DUPLICATE'],"", '');
114
-	$form .= "<table width='100%' cellpadding='0' cellspacing='0'>	<tr >	";
115
-	if ($action != 'ShowDuplicates') 
116
-	{
117
-		$form .= "<td > &nbsp;</td>";
118
-	}
119
-
120
-	require_once('include/formbase.php');
121
-	$form .= getPostToForm();
122
-
123
-	if(isset($rows[0])){
124
-		foreach ($rows[0] as $key=>$value){
125
-			if($key != 'id'){
126
-					$form .= "<td scope='col' >". $mod_strings[$mod_strings['db_'.$key]]. "</td>";
127
-			}
128
-		}
129
-		$form .= "</tr>";
130
-	}
131
-	$rowColor = 'oddListRowS1';
132
-	foreach($rows as $row){
133
-
134
-		$form .= "<tr class='$rowColor'>";
135
-		if ($action != 'ShowDuplicates') 
136
-			$form .= "<td width='1%' nowrap='nowrap' ><a href='#' onClick=\"document.dupProspects.selectedProspect.value='${row['id']}';document.dupProspects.submit() \">[${app_strings['LBL_SELECT_BUTTON_LABEL']}]</a>&nbsp;&nbsp;</td>\n";
97
+    global $action;
98
+    if(!empty($mod)){
99
+    global $current_language;
100
+    $mod_strings = return_module_language($current_language, $mod);
101
+    }else global $mod_strings;
102
+    global $app_strings;
103
+    $cols = sizeof($rows[0]) * 2 + 1;
104
+    if ($action != 'ShowDuplicates') 
105
+    {
106
+        $form = '<table width="100%"><tr><td>'.$mod_strings['MSG_DUPLICATE']. '</td></tr><tr><td height="20"></td></tr></table>';
107
+        $form .= "<form action='index.php' method='post' name='dupProspects'><input type='hidden' name='selectedProspect' value=''>";
108
+    }
109
+    else 
110
+    {
111
+        $form = '<table width="100%"><tr><td>'.$mod_strings['MSG_SHOW_DUPLICATES']. '</td></tr><tr><td height="20"></td></tr></table>';
112
+    }
113
+    $form .= get_form_header($mod_strings['LBL_DUPLICATE'],"", '');
114
+    $form .= "<table width='100%' cellpadding='0' cellspacing='0'>	<tr >	";
115
+    if ($action != 'ShowDuplicates') 
116
+    {
117
+        $form .= "<td > &nbsp;</td>";
118
+    }
119
+
120
+    require_once('include/formbase.php');
121
+    $form .= getPostToForm();
122
+
123
+    if(isset($rows[0])){
124
+        foreach ($rows[0] as $key=>$value){
125
+            if($key != 'id'){
126
+                    $form .= "<td scope='col' >". $mod_strings[$mod_strings['db_'.$key]]. "</td>";
127
+            }
128
+        }
129
+        $form .= "</tr>";
130
+    }
131
+    $rowColor = 'oddListRowS1';
132
+    foreach($rows as $row){
133
+
134
+        $form .= "<tr class='$rowColor'>";
135
+        if ($action != 'ShowDuplicates') 
136
+            $form .= "<td width='1%' nowrap='nowrap' ><a href='#' onClick=\"document.dupProspects.selectedProspect.value='${row['id']}';document.dupProspects.submit() \">[${app_strings['LBL_SELECT_BUTTON_LABEL']}]</a>&nbsp;&nbsp;</td>\n";
137 137
 		
138
-		$wasSet = false;
138
+        $wasSet = false;
139 139
 
140
-		foreach ($row as $key=>$value) {
140
+        foreach ($row as $key=>$value) {
141 141
             if($key != 'id') {
142 142
                 if(!$wasSet) {
143 143
                     $form .= "<td scope='row' ><a target='_blank' href='index.php?module=Prospects&action=DetailView&record=${row['id']}'>$value</a></td>\n";
@@ -147,25 +147,25 @@  discard block
 block discarded – undo
147 147
                     $form .= "<td><a target='_blank' href='index.php?module=Prospects&action=DetailView&record=${row['id']}'>$value</a></td>\n";
148 148
                 }
149 149
             }
150
-		}
151
-
152
-		if($rowColor == 'evenListRowS1'){
153
-			$rowColor = 'oddListRowS1';
154
-		}else{
155
-			 $rowColor = 'evenListRowS1';
156
-		}
157
-		$form .= "</tr>";
158
-	}
159
-	$form .= "<tr ><td colspan='$cols' class='blackline'></td></tr>";
160
-	if ($action == 'ShowDuplicates') 
161
-	{
162
-		$form .= "</table><br><input title='${app_strings['LBL_SAVE_BUTTON_TITLE']}' accessKey='${app_strings['LBL_SAVE_BUTTON_KEY']}' class='button' onclick=\"this.form.action.value='Save';\" type='submit' name='button' value='  ${app_strings['LBL_SAVE_BUTTON_LABEL']}  '> <input title='${app_strings['LBL_CANCEL_BUTTON_TITLE']}' accessKey='${app_strings['LBL_CANCEL_BUTTON_KEY']}' class='button' onclick=\"this.form.action.value='ListView'; this.form.module.value='Prospects';\" type='submit' name='button' value='  ${app_strings['LBL_CANCEL_BUTTON_LABEL']}  '></form>";
163
-	}
164
-	else 
165
-	{
166
-		$form .= "</table><br><input type='submit' class='button' name='ContinueProspect' value='${mod_strings['LNK_NEW_PROSPECT']}'></form>";
167
-	}
168
-	return $form;
150
+        }
151
+
152
+        if($rowColor == 'evenListRowS1'){
153
+            $rowColor = 'oddListRowS1';
154
+        }else{
155
+                $rowColor = 'evenListRowS1';
156
+        }
157
+        $form .= "</tr>";
158
+    }
159
+    $form .= "<tr ><td colspan='$cols' class='blackline'></td></tr>";
160
+    if ($action == 'ShowDuplicates') 
161
+    {
162
+        $form .= "</table><br><input title='${app_strings['LBL_SAVE_BUTTON_TITLE']}' accessKey='${app_strings['LBL_SAVE_BUTTON_KEY']}' class='button' onclick=\"this.form.action.value='Save';\" type='submit' name='button' value='  ${app_strings['LBL_SAVE_BUTTON_LABEL']}  '> <input title='${app_strings['LBL_CANCEL_BUTTON_TITLE']}' accessKey='${app_strings['LBL_CANCEL_BUTTON_KEY']}' class='button' onclick=\"this.form.action.value='ListView'; this.form.module.value='Prospects';\" type='submit' name='button' value='  ${app_strings['LBL_CANCEL_BUTTON_LABEL']}  '></form>";
163
+    }
164
+    else 
165
+    {
166
+        $form .= "</table><br><input type='submit' class='button' name='ContinueProspect' value='${mod_strings['LNK_NEW_PROSPECT']}'></form>";
167
+    }
168
+    return $form;
169 169
 
170 170
 
171 171
 
@@ -173,31 +173,31 @@  discard block
 block discarded – undo
173 173
 
174 174
 }
175 175
 function getWideFormBody($prefix, $mod='',$formname='',  $prospect = ''){
176
-	if(!ACLController::checkAccess('Prospects', 'edit', true)){
177
-		return '';
178
-	}
176
+    if(!ACLController::checkAccess('Prospects', 'edit', true)){
177
+        return '';
178
+    }
179 179
 	
180
-	if(empty($prospect)){
181
-		$prospect = new Prospect();
182
-	}
183
-	global $mod_strings;
180
+    if(empty($prospect)){
181
+        $prospect = new Prospect();
182
+    }
183
+    global $mod_strings;
184 184
 $temp_strings = $mod_strings;
185 185
 if(!empty($mod)){
186
-	global $current_language;
187
-	$mod_strings = return_module_language($current_language, $mod);
186
+    global $current_language;
187
+    $mod_strings = return_module_language($current_language, $mod);
188 188
 }
189
-		global $app_strings;
190
-		global $current_user;
191
-		global $app_list_strings;
192
-		$primary_address_country_options = get_select_options_with_id($app_list_strings['countries_dom'], $prospect->primary_address_country);
193
-		$lbl_required_symbol = $app_strings['LBL_REQUIRED_SYMBOL'];
194
-		$lbl_first_name = $mod_strings['LBL_FIRST_NAME'];
195
-		$lbl_last_name = $mod_strings['LBL_LAST_NAME'];
196
-		$lbl_phone = $mod_strings['LBL_OFFICE_PHONE'];
197
-		$lbl_address =  $mod_strings['LBL_PRIMARY_ADDRESS'];
198
-		$user_id = $current_user->id;
199
-		$lbl_email_address = $mod_strings['LBL_EMAIL_ADDRESS'];
200
-		$form = <<<EOQ
189
+        global $app_strings;
190
+        global $current_user;
191
+        global $app_list_strings;
192
+        $primary_address_country_options = get_select_options_with_id($app_list_strings['countries_dom'], $prospect->primary_address_country);
193
+        $lbl_required_symbol = $app_strings['LBL_REQUIRED_SYMBOL'];
194
+        $lbl_first_name = $mod_strings['LBL_FIRST_NAME'];
195
+        $lbl_last_name = $mod_strings['LBL_LAST_NAME'];
196
+        $lbl_phone = $mod_strings['LBL_OFFICE_PHONE'];
197
+        $lbl_address =  $mod_strings['LBL_PRIMARY_ADDRESS'];
198
+        $user_id = $current_user->id;
199
+        $lbl_email_address = $mod_strings['LBL_EMAIL_ADDRESS'];
200
+        $form = <<<EOQ
201 201
 		<input type="hidden" name="${prefix}record" value="">
202 202
 		<input type="hidden" name="${prefix}assigned_user_id" value='${user_id}'>
203 203
 		<table border='0' celpadding="0" cellspacing="0" width='100%'>
@@ -304,26 +304,26 @@  discard block
 block discarded – undo
304 304
 }
305 305
 
306 306
 function getFormBody($prefix, $mod='', $formname=''){
307
-	if(!ACLController::checkAccess('Prospects', 'edit', true)){
308
-		return '';
309
-	}
307
+    if(!ACLController::checkAccess('Prospects', 'edit', true)){
308
+        return '';
309
+    }
310 310
 global $mod_strings;
311 311
 $temp_strings = $mod_strings;
312 312
 if(!empty($mod)){
313
-	global $current_language;
314
-	$mod_strings = return_module_language($current_language, $mod);
313
+    global $current_language;
314
+    $mod_strings = return_module_language($current_language, $mod);
315 315
 }
316
-		global $app_strings;
317
-		global $current_user;
318
-		$lbl_required_symbol = $app_strings['LBL_REQUIRED_SYMBOL'];
319
-		$lbl_first_name = $mod_strings['LBL_FIRST_NAME'];
320
-		$lbl_last_name = $mod_strings['LBL_LAST_NAME'];
321
-		$lbl_phone = $mod_strings['LBL_PHONE'];
322
-		$user_id = $current_user->id;
323
-		$lbl_email_address = $mod_strings['LBL_EMAIL_ADDRESS'];
316
+        global $app_strings;
317
+        global $current_user;
318
+        $lbl_required_symbol = $app_strings['LBL_REQUIRED_SYMBOL'];
319
+        $lbl_first_name = $mod_strings['LBL_FIRST_NAME'];
320
+        $lbl_last_name = $mod_strings['LBL_LAST_NAME'];
321
+        $lbl_phone = $mod_strings['LBL_PHONE'];
322
+        $user_id = $current_user->id;
323
+        $lbl_email_address = $mod_strings['LBL_EMAIL_ADDRESS'];
324 324
 if ($formname == 'EmailEditView')
325 325
 {
326
-		$form = <<<EOQ
326
+        $form = <<<EOQ
327 327
 		<input type="hidden" name="${prefix}record" value="">
328 328
 		<input type="hidden" name="${prefix}email2" value="">
329 329
 		<input type="hidden" name="${prefix}phone_work" value="">
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 }
340 340
 else
341 341
 {
342
-		$form = <<<EOQ
342
+        $form = <<<EOQ
343 343
 		<input type="hidden" name="${prefix}record" value="">
344 344
 		<input type="hidden" name="${prefix}email2" value="">
345 345
 		<input type="hidden" name="${prefix}assigned_user_id" value='${user_id}'>
@@ -369,11 +369,11 @@  discard block
 block discarded – undo
369 369
 }
370 370
 function getForm($prefix, $mod=''){
371 371
 if(!ACLController::checkAccess('Prospects', 'edit', true)){
372
-		return '';
373
-	}
372
+        return '';
373
+    }
374 374
 if(!empty($mod)){
375
-	global $current_language;
376
-	$mod_strings = return_module_language($current_language, $mod);
375
+    global $current_language;
376
+    $mod_strings = return_module_language($current_language, $mod);
377 377
 }else global $mod_strings;
378 378
 global $app_strings;
379 379
 
@@ -405,31 +405,31 @@  discard block
 block discarded – undo
405 405
 
406 406
 
407 407
 function handleSave($prefix,$redirect=true, $useRequired=false){
408
-	global $theme;
408
+    global $theme;
409 409
 	
410 410
 	
411 411
 	
412 412
 	
413
-	require_once('include/formbase.php');
413
+    require_once('include/formbase.php');
414 414
 	
415
-	global $timedate;
415
+    global $timedate;
416 416
 	
417 417
 	
418
-	$focus = new Prospect();
419
-	if($useRequired &&  !checkRequired($prefix, array_keys($focus->required_fields))){
420
-		return null;
421
-	}
422
-	$focus = populateFromPost($prefix, $focus);
423
-	if(!$focus->ACLAccess('Save')){
424
-		return null;
425
-	}
426
-	if (!isset($GLOBALS['check_notify'])) $GLOBALS['check_notify']=false;
418
+    $focus = new Prospect();
419
+    if($useRequired &&  !checkRequired($prefix, array_keys($focus->required_fields))){
420
+        return null;
421
+    }
422
+    $focus = populateFromPost($prefix, $focus);
423
+    if(!$focus->ACLAccess('Save')){
424
+        return null;
425
+    }
426
+    if (!isset($GLOBALS['check_notify'])) $GLOBALS['check_notify']=false;
427 427
 	
428
-	if (!isset($_POST[$prefix.'email_opt_out'])) $focus->email_opt_out = 0;
429
-	if (!isset($_POST[$prefix.'do_not_call'])) $focus->do_not_call = 0;
428
+    if (!isset($_POST[$prefix.'email_opt_out'])) $focus->email_opt_out = 0;
429
+    if (!isset($_POST[$prefix.'do_not_call'])) $focus->do_not_call = 0;
430 430
 	
431
-	if (empty($_POST['record']) && empty($_POST['dup_checked'])) {
432
-		/*
431
+    if (empty($_POST['record']) && empty($_POST['dup_checked'])) {
432
+        /*
433 433
 		// we don't check dupes on Prospects - this is the dirtiest data in the system
434 434
 		//$duplicateProspects = $this->checkForDuplicates($prefix);
435 435
 		if(isset($duplicateProspects)){
@@ -473,13 +473,13 @@  discard block
 block discarded – undo
473 473
 			header("Location: index.php?$get");
474 474
 			return null;
475 475
 		}*/
476
-	}
477
-	global $current_user;
476
+    }
477
+    global $current_user;
478 478
 
479
-	$focus->save($GLOBALS['check_notify']);
480
-	$return_id = $focus->id;
479
+    $focus->save($GLOBALS['check_notify']);
480
+    $return_id = $focus->id;
481 481
     
482
-	$GLOBALS['log']->debug("Saved record with id of ".$return_id);
482
+    $GLOBALS['log']->debug("Saved record with id of ".$return_id);
483 483
     if(isset($_POST['popup']) && $_POST['popup'] == 'true') {
484 484
         $get = '&module=';
485 485
         if(!empty($_POST['return_module'])) $get .= $_POST['return_module'];
@@ -497,12 +497,12 @@  discard block
 block discarded – undo
497 497
         header("Location: index.php?$get");
498 498
         return;
499 499
     }
500
-	if($redirect){
501
-	    require_once('include/formbase.php');
502
-	    handleRedirect($return_id, 'Prospects');
503
-	}else{
504
-		return $focus;
505
-	}
500
+    if($redirect){
501
+        require_once('include/formbase.php');
502
+        handleRedirect($return_id, 'Prospects');
503
+    }else{
504
+        return $focus;
505
+    }
506 506
 }
507 507
 
508 508
 }
Please login to merge, or discard this patch.
modules/Prospects/metadata/additionalDetails.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -40,58 +40,58 @@
 block discarded – undo
40 40
 
41 41
 
42 42
 function additionalDetailsProspect($fields) {
43
-	static $mod_strings;
44
-	if(empty($mod_strings)) {
45
-		global $current_language;
46
-		$mod_strings = return_module_language($current_language, 'Prospects');
47
-	}
43
+    static $mod_strings;
44
+    if(empty($mod_strings)) {
45
+        global $current_language;
46
+        $mod_strings = return_module_language($current_language, 'Prospects');
47
+    }
48 48
 		
49
-	$overlib_string = '';
49
+    $overlib_string = '';
50 50
 	
51
-	if(!empty($fields['ACCOUNT_NAME'])) $overlib_string .= '<b>'. $mod_strings['LBL_EDIT_ACCOUNT_NAME'] . '</b> ' . $fields['ACCOUNT_NAME'] . '<br>';
52
-	if(!empty($fields['PRIMARY_ADDRESS_STREET']) || !empty($fields['PRIMARY_ADDRESS_CITY']) ||
53
-		!empty($fields['PRIMARY_ADDRESS_STATE']) || !empty($fields['PRIMARY_ADDRESS_POSTALCODE']) ||
54
-		!empty($fields['PRIMARY_ADDRESS_COUNTRY']))
55
-			$overlib_string .= '<b>' . $mod_strings['LBL_PRIMARY_ADDRESS'] . '</b><br>';
56
-	if(!empty($fields['PRIMARY_ADDRESS_STREET'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STREET'] . '<br>';
57
-	if(!empty($fields['PRIMARY_ADDRESS_STREET_2'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STREET_2'] . '<br>';
58
-	if(!empty($fields['PRIMARY_ADDRESS_STREET_3'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STREET_3'] . '<br>';
59
-	if(!empty($fields['PRIMARY_ADDRESS_CITY'])) $overlib_string .= $fields['PRIMARY_ADDRESS_CITY'] . ', ';
60
-	if(!empty($fields['PRIMARY_ADDRESS_STATE'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STATE'] . ' ';
61
-	if(!empty($fields['PRIMARY_ADDRESS_POSTALCODE'])) $overlib_string .= $fields['PRIMARY_ADDRESS_POSTALCODE'] . ' ';
62
-	if(!empty($fields['PRIMARY_ADDRESS_COUNTRY'])) $overlib_string .= $fields['PRIMARY_ADDRESS_COUNTRY'] . '<br>';
63
-	if(strlen($overlib_string) > 0 && !(strrpos($overlib_string, '<br>') == strlen($overlib_string) - 4)) 
64
-		$overlib_string .= '<br>';  
65
-	if(!empty($fields['PHONE_MOBILE'])) $overlib_string .= '<b>'. $mod_strings['LBL_MOBILE_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_MOBILE'] . '</span><br>';
66
-	if(!empty($fields['PHONE_HOME'])) $overlib_string .= '<b>'. $mod_strings['LBL_HOME_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_HOME'] . '</span><br>';
67
-	if(!empty($fields['PHONE_OTHER'])) $overlib_string .= '<b>'. $mod_strings['LBL_OTHER_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_OTHER'] . '</span><br>';
51
+    if(!empty($fields['ACCOUNT_NAME'])) $overlib_string .= '<b>'. $mod_strings['LBL_EDIT_ACCOUNT_NAME'] . '</b> ' . $fields['ACCOUNT_NAME'] . '<br>';
52
+    if(!empty($fields['PRIMARY_ADDRESS_STREET']) || !empty($fields['PRIMARY_ADDRESS_CITY']) ||
53
+        !empty($fields['PRIMARY_ADDRESS_STATE']) || !empty($fields['PRIMARY_ADDRESS_POSTALCODE']) ||
54
+        !empty($fields['PRIMARY_ADDRESS_COUNTRY']))
55
+            $overlib_string .= '<b>' . $mod_strings['LBL_PRIMARY_ADDRESS'] . '</b><br>';
56
+    if(!empty($fields['PRIMARY_ADDRESS_STREET'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STREET'] . '<br>';
57
+    if(!empty($fields['PRIMARY_ADDRESS_STREET_2'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STREET_2'] . '<br>';
58
+    if(!empty($fields['PRIMARY_ADDRESS_STREET_3'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STREET_3'] . '<br>';
59
+    if(!empty($fields['PRIMARY_ADDRESS_CITY'])) $overlib_string .= $fields['PRIMARY_ADDRESS_CITY'] . ', ';
60
+    if(!empty($fields['PRIMARY_ADDRESS_STATE'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STATE'] . ' ';
61
+    if(!empty($fields['PRIMARY_ADDRESS_POSTALCODE'])) $overlib_string .= $fields['PRIMARY_ADDRESS_POSTALCODE'] . ' ';
62
+    if(!empty($fields['PRIMARY_ADDRESS_COUNTRY'])) $overlib_string .= $fields['PRIMARY_ADDRESS_COUNTRY'] . '<br>';
63
+    if(strlen($overlib_string) > 0 && !(strrpos($overlib_string, '<br>') == strlen($overlib_string) - 4)) 
64
+        $overlib_string .= '<br>';  
65
+    if(!empty($fields['PHONE_MOBILE'])) $overlib_string .= '<b>'. $mod_strings['LBL_MOBILE_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_MOBILE'] . '</span><br>';
66
+    if(!empty($fields['PHONE_HOME'])) $overlib_string .= '<b>'. $mod_strings['LBL_HOME_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_HOME'] . '</span><br>';
67
+    if(!empty($fields['PHONE_OTHER'])) $overlib_string .= '<b>'. $mod_strings['LBL_OTHER_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_OTHER'] . '</span><br>';
68 68
 
69
-	if(!empty($fields['EMAIL1'])) 
70
-		$overlib_string .= '<b>'. $mod_strings['LBL_EMAIL_ADDRESS'] . '</b> ' . 
71
-								 "<a href=index.php?module=Emails&action=Compose&contact_id={$fields['ID']}&" .
72
-								 "parent_type=Contacts&parent_id={$fields['ID']}&to_addrs_ids={$fields['ID']}&to_addrs_names" .
73
-								 "={$fields['FIRST_NAME']}&nbsp;{$fields['LAST_NAME']}&to_addrs_emails={$fields['EMAIL1']}&" .
74
-								 "to_email_addrs=" . urlencode("{$fields['FIRST_NAME']} {$fields['LAST_NAME']} <{$fields['EMAIL1']}>") .
75
-								 "&return_module=Contacts&return_action=ListView'>{$fields['EMAIL1']}</a><br>";
76
-	if(!empty($fields['EMAIL2'])) 
77
-		$overlib_string .= '<b>'. $mod_strings['LBL_OTHER_EMAIL_ADDRESS'] . '</b> ' . 
78
-								 "<a href=index.php?module=Emails&action=Compose&contact_id={$fields['ID']}&" .
79
-								 "parent_type=Contacts&parent_id={$fields['ID']}&to_addrs_ids={$fields['ID']}&to_addrs_names" .
80
-								 "={$fields['FIRST_NAME']}&nbsp;{$fields['LAST_NAME']}&to_addrs_emails={$fields['EMAIL2']}&" .
81
-								 "to_email_addrs=" . urlencode("{$fields['FIRST_NAME']} {$fields['LAST_NAME']} <{$fields['EMAIL2']}>") .
82
-								 "&return_module=Contacts&return_action=ListView'>{$fields['EMAIL2']}</a><br>";
69
+    if(!empty($fields['EMAIL1'])) 
70
+        $overlib_string .= '<b>'. $mod_strings['LBL_EMAIL_ADDRESS'] . '</b> ' . 
71
+                                    "<a href=index.php?module=Emails&action=Compose&contact_id={$fields['ID']}&" .
72
+                                    "parent_type=Contacts&parent_id={$fields['ID']}&to_addrs_ids={$fields['ID']}&to_addrs_names" .
73
+                                    "={$fields['FIRST_NAME']}&nbsp;{$fields['LAST_NAME']}&to_addrs_emails={$fields['EMAIL1']}&" .
74
+                                    "to_email_addrs=" . urlencode("{$fields['FIRST_NAME']} {$fields['LAST_NAME']} <{$fields['EMAIL1']}>") .
75
+                                    "&return_module=Contacts&return_action=ListView'>{$fields['EMAIL1']}</a><br>";
76
+    if(!empty($fields['EMAIL2'])) 
77
+        $overlib_string .= '<b>'. $mod_strings['LBL_OTHER_EMAIL_ADDRESS'] . '</b> ' . 
78
+                                    "<a href=index.php?module=Emails&action=Compose&contact_id={$fields['ID']}&" .
79
+                                    "parent_type=Contacts&parent_id={$fields['ID']}&to_addrs_ids={$fields['ID']}&to_addrs_names" .
80
+                                    "={$fields['FIRST_NAME']}&nbsp;{$fields['LAST_NAME']}&to_addrs_emails={$fields['EMAIL2']}&" .
81
+                                    "to_email_addrs=" . urlencode("{$fields['FIRST_NAME']} {$fields['LAST_NAME']} <{$fields['EMAIL2']}>") .
82
+                                    "&return_module=Contacts&return_action=ListView'>{$fields['EMAIL2']}</a><br>";
83 83
 	
84
-	if(!empty($fields['DESCRIPTION'])) { 
85
-		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
86
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
87
-	}	
84
+    if(!empty($fields['DESCRIPTION'])) { 
85
+        $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
86
+        if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
87
+    }	
88 88
 	
89
-	return array('fieldToAddTo' => 'FULL_NAME', 
90
-				 'string' => $overlib_string, 
91
-				 'editLink' => "index.php?action=EditView&module=Prospects&return_module=Prospects&record={$fields['ID']}", 
92
-				 'viewLink' => "index.php?action=DetailView&module=Prospects&return_module=Prospects&record={$fields['ID']}");
89
+    return array('fieldToAddTo' => 'FULL_NAME', 
90
+                    'string' => $overlib_string, 
91
+                    'editLink' => "index.php?action=EditView&module=Prospects&return_module=Prospects&record={$fields['ID']}", 
92
+                    'viewLink' => "index.php?action=DetailView&module=Prospects&return_module=Prospects&record={$fields['ID']}");
93 93
 	
94 94
 }
95 95
  
96
- ?>
96
+    ?>
97 97
  
Please login to merge, or discard this patch.
modules/Prospects/metadata/editviewdefs.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -43,72 +43,72 @@
 block discarded – undo
43 43
                                             array('label' => '10', 'field' => '30'), 
44 44
                                             array('label' => '10', 'field' => '30')
45 45
                                             ),
46
-     ),
47
- 'panels' =>array (
48
-  'lbl_prospect_information' => 
49
-  array (
46
+        ),
47
+    'panels' =>array (
48
+    'lbl_prospect_information' => 
49
+    array (
50 50
     
51 51
     array (
52
-      array (
52
+        array (
53 53
         'name' => 'first_name',
54 54
         'customCode' => '{html_options name="salutation" id="salutation" options=$fields.salutation.options selected=$fields.salutation.value}' 
55
-      . '&nbsp;<input name="first_name"  id="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
56
-      ),
55
+        . '&nbsp;<input name="first_name"  id="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
56
+        ),
57 57
     ),
58 58
     
59 59
     array (
60
-      array('name'=>'last_name',
60
+        array('name'=>'last_name',
61 61
             'displayParams'=>array('required'=>true),
62
-      ),
63
-      'phone_work',
62
+        ),
63
+        'phone_work',
64 64
     ),
65 65
     
66 66
     array (
67
-      'title',
68
-      'phone_mobile',
67
+        'title',
68
+        'phone_mobile',
69 69
     ),
70 70
     
71 71
     array (
72
-      'department',
73
-      'phone_fax',
72
+        'department',
73
+        'phone_fax',
74 74
     ),
75 75
     
76 76
     array (
77
-      'account_name',
77
+        'account_name',
78 78
     ),
79 79
     
80 80
     array (
81
-      array (
82
-	      'name' => 'primary_address_street',
83
-          'hideLabel' => true,      
84
-	      'type' => 'address',
85
-	      'displayParams'=>array('key'=>'primary', 'rows'=>2, 'cols'=>30, 'maxlength'=>150),
86
-      ),
81
+        array (
82
+            'name' => 'primary_address_street',
83
+            'hideLabel' => true,      
84
+            'type' => 'address',
85
+            'displayParams'=>array('key'=>'primary', 'rows'=>2, 'cols'=>30, 'maxlength'=>150),
86
+        ),
87 87
       
88
-      array (
89
-	      'name' => 'alt_address_street',
90
-	      'hideLabel'=>true,
91
-	      'type' => 'address',
92
-	      'displayParams'=>array('key'=>'alt', 'copy'=>'primary', 'rows'=>2, 'cols'=>30, 'maxlength'=>150),      
93
-      ),
88
+        array (
89
+            'name' => 'alt_address_street',
90
+            'hideLabel'=>true,
91
+            'type' => 'address',
92
+            'displayParams'=>array('key'=>'alt', 'copy'=>'primary', 'rows'=>2, 'cols'=>30, 'maxlength'=>150),      
93
+        ),
94 94
     ),
95 95
     array('email1'),
96 96
     array (
97
-      array('name'=>'description', 
97
+        array('name'=>'description', 
98 98
             'label'=>'LBL_DESCRIPTION'),
99 99
     ),
100 100
     ),
101
-  'LBL_MORE_INFORMATION' => array(
101
+    'LBL_MORE_INFORMATION' => array(
102 102
     array (
103
-      'do_not_call',
103
+        'do_not_call',
104 104
     ),
105 105
     ),
106
-  'LBL_PANEL_ASSIGNMENT' => array(
106
+    'LBL_PANEL_ASSIGNMENT' => array(
107 107
     array (
108
-	  'assigned_user_name',
108
+        'assigned_user_name',
109 109
     ),    
110 110
 
111
-  ),
111
+    ),
112 112
 )
113 113
 
114 114
 
Please login to merge, or discard this patch.
modules/Prospects/metadata/popupdefs.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -42,24 +42,24 @@
 block discarded – undo
42 42
 global $mod_strings;
43 43
 
44 44
 $popupMeta = array('moduleMain' => 'Prospect',
45
-						'varName' => 'PROSPECT',
46
-						'orderBy' => 'prospects.last_name, prospects.first_name',
47
-						'whereClauses' => 
48
-							array('first_name' => 'prospects.first_name',
49
-									'last_name' => 'prospects.last_name'),
50
-						'searchInputs' =>
51
-							array('first_name', 'last_name'),
52
-						'selectDoms' =>
53
-							array('LIST_OPTIONS' => 
54
-											array('dom' => 'prospect_list_type_dom', 'searchInput' => 'list_type'),
55
-								  ),
56
-						'create' =>
57
-							array('formBase' => 'ProspectFormBase.php',
58
-									'formBaseClass' => 'ProspectFormBase',
59
-									'getFormBodyParams' => array('','','ProspectSave'),
60
-									'createButton' => 'LNK_NEW_PROSPECT'
61
-								  )
62
-						);
45
+                        'varName' => 'PROSPECT',
46
+                        'orderBy' => 'prospects.last_name, prospects.first_name',
47
+                        'whereClauses' => 
48
+                            array('first_name' => 'prospects.first_name',
49
+                                    'last_name' => 'prospects.last_name'),
50
+                        'searchInputs' =>
51
+                            array('first_name', 'last_name'),
52
+                        'selectDoms' =>
53
+                            array('LIST_OPTIONS' => 
54
+                                            array('dom' => 'prospect_list_type_dom', 'searchInput' => 'list_type'),
55
+                                    ),
56
+                        'create' =>
57
+                            array('formBase' => 'ProspectFormBase.php',
58
+                                    'formBaseClass' => 'ProspectFormBase',
59
+                                    'getFormBodyParams' => array('','','ProspectSave'),
60
+                                    'createButton' => 'LNK_NEW_PROSPECT'
61
+                                    )
62
+                        );
63 63
 
64 64
 
65 65
 ?>
Please login to merge, or discard this patch.
modules/Prospects/metadata/searchdefs.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -39,31 +39,31 @@
 block discarded – undo
39 39
 
40 40
 
41 41
 $searchdefs['Prospects'] = array(
42
-				'templateMeta' => array(
43
-						'maxColumns' => '3',
42
+                'templateMeta' => array(
43
+                        'maxColumns' => '3',
44 44
                         'maxColumnsBasic' => '4', 
45 45
                         'widths' => array('label' => '10', 'field' => '30'), 
46
-                       ),
46
+                        ),
47 47
                 'layout' => array(
48
-  					'basic_search' => array(
49
- 							array('name'=>'search_name','label' =>'LBL_NAME', 'type' => 'name'),
50
-                           array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
48
+                        'basic_search' => array(
49
+                                array('name'=>'search_name','label' =>'LBL_NAME', 'type' => 'name'),
50
+                            array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
51 51
                            
52
-						),
53
-					'advanced_search' => array(
54
-							'first_name', 
55
-							'last_name', 
56
-							array('name' => 'phone', 'label' =>'LBL_ANY_PHONE', 'type' => 'name'),
57
-							array('name' => 'email', 'label' =>'LBL_ANY_EMAIL', 'type' => 'name'),
58
-							'assistant',
59
-							'do_not_call',
60
-							array('name' => 'address_street', 'label'=>'LBL_ANY_ADDRESS', 'type' => 'name'),
61
-							array('name' => 'address_state', 'label' =>'LBL_STATE', 'type' => 'name'),
62
-							array('name' => 'address_postalcode', 'label' =>'LBL_POSTAL_CODE', 'type' => 'name'),
63
-							array('name' => 'primary_address_country', 'label' =>'LBL_COUNTRY', 'type' => 'name', 'options' => 'countries_dom', ), 
64
-							array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
52
+                        ),
53
+                    'advanced_search' => array(
54
+                            'first_name', 
55
+                            'last_name', 
56
+                            array('name' => 'phone', 'label' =>'LBL_ANY_PHONE', 'type' => 'name'),
57
+                            array('name' => 'email', 'label' =>'LBL_ANY_EMAIL', 'type' => 'name'),
58
+                            'assistant',
59
+                            'do_not_call',
60
+                            array('name' => 'address_street', 'label'=>'LBL_ANY_ADDRESS', 'type' => 'name'),
61
+                            array('name' => 'address_state', 'label' =>'LBL_STATE', 'type' => 'name'),
62
+                            array('name' => 'address_postalcode', 'label' =>'LBL_POSTAL_CODE', 'type' => 'name'),
63
+                            array('name' => 'primary_address_country', 'label' =>'LBL_COUNTRY', 'type' => 'name', 'options' => 'countries_dom', ), 
64
+                            array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
65 65
 							
66
-					),
67
-				),
68
-		   );
66
+                    ),
67
+                ),
68
+            );
69 69
 ?>
Please login to merge, or discard this patch.
modules/Prospects/metadata/SearchFields.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -39,35 +39,35 @@
 block discarded – undo
39 39
  ********************************************************************************/
40 40
 
41 41
 $searchFields['Prospects'] = 
42
-	array (
43
-		'first_name' => array( 'query_type'=>'default'),
44
-		'last_name'=> array('query_type'=>'default'),
45
-		'search_name'=> array('query_type'=>'default','db_field'=>array('first_name','last_name'),'force_unifiedsearch'=>true),
46
-		'do_not_call'=> array('query_type'=>'default', 'operator'=>'='),
47
-		'phone'=> array('query_type'=>'default','db_field'=>array('phone_mobile','phone_work','phone_other','phone_fax','phone_home')),
48
-		'email'=> array(
49
-			'query_type' => 'default',
50
-			'operator' => 'subquery',
51
-			'subquery' => 'SELECT eabr.bean_id FROM email_addr_bean_rel eabr JOIN email_addresses ea ON (ea.id = eabr.email_address_id) WHERE eabr.deleted=0 AND ea.email_address LIKE',
52
-			'db_field' => array(
53
-				'id',
54
-			),
55
-		),
56
-		'assistant'=> array('query_type'=>'default'),
57
-		'address_street'=> array('query_type'=>'default','db_field'=>array('primary_address_street','alt_address_street')),
58
-		'address_city'=> array('query_type'=>'default','db_field'=>array('primary_address_city','alt_address_city')),
59
-		'address_state'=> array('query_type'=>'default','db_field'=>array('primary_address_state','alt_address_state')),
60
-		'address_postalcode'=> array('query_type'=>'default','db_field'=>array('primary_address_postalcode','alt_address_postalcode')),
61
-		'address_country'=> array('query_type'=>'default','db_field'=>array('primary_address_country','alt_address_country')),
62
-		'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
63
-		'assigned_user_id'=> array('query_type'=>'default'),
64
-	   //Range Search Support 
65
-	   'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
66
-	   'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
67
-	   'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
68
-	   'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
69
-	   'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
70
-       'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
71
-	   //Range Search Support
72
-	);
42
+    array (
43
+        'first_name' => array( 'query_type'=>'default'),
44
+        'last_name'=> array('query_type'=>'default'),
45
+        'search_name'=> array('query_type'=>'default','db_field'=>array('first_name','last_name'),'force_unifiedsearch'=>true),
46
+        'do_not_call'=> array('query_type'=>'default', 'operator'=>'='),
47
+        'phone'=> array('query_type'=>'default','db_field'=>array('phone_mobile','phone_work','phone_other','phone_fax','phone_home')),
48
+        'email'=> array(
49
+            'query_type' => 'default',
50
+            'operator' => 'subquery',
51
+            'subquery' => 'SELECT eabr.bean_id FROM email_addr_bean_rel eabr JOIN email_addresses ea ON (ea.id = eabr.email_address_id) WHERE eabr.deleted=0 AND ea.email_address LIKE',
52
+            'db_field' => array(
53
+                'id',
54
+            ),
55
+        ),
56
+        'assistant'=> array('query_type'=>'default'),
57
+        'address_street'=> array('query_type'=>'default','db_field'=>array('primary_address_street','alt_address_street')),
58
+        'address_city'=> array('query_type'=>'default','db_field'=>array('primary_address_city','alt_address_city')),
59
+        'address_state'=> array('query_type'=>'default','db_field'=>array('primary_address_state','alt_address_state')),
60
+        'address_postalcode'=> array('query_type'=>'default','db_field'=>array('primary_address_postalcode','alt_address_postalcode')),
61
+        'address_country'=> array('query_type'=>'default','db_field'=>array('primary_address_country','alt_address_country')),
62
+        'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
63
+        'assigned_user_id'=> array('query_type'=>'default'),
64
+        //Range Search Support 
65
+        'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
66
+        'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
67
+        'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
68
+        'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
69
+        'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
70
+        'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
71
+        //Range Search Support
72
+    );
73 73
 ?>
Please login to merge, or discard this patch.