Completed
Push — console-installer ( 67c42e...186d32 )
by Adam
89:28 queued 70:47
created
modules/ProjectTask/updateDependencies.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -40,26 +40,26 @@  discard block
 block discarded – undo
40 40
 
41 41
 class updateDependencies {
42 42
 
43
-    function update_dependency(&$bean, $event, $arguments){
43
+    function update_dependency(&$bean, $event, $arguments) {
44 44
         //Get all tasks that are dependant on the current task being saved.
45 45
         $Task = BeanFactory::getBean('ProjectTask');
46 46
         $tasks = $Task->get_full_list("", "project_task.project_id = '".$bean->project_id."' AND project_task.predecessors = '".$bean->project_task_id."'");
47 47
 
48
-        if($bean->date_finish != $bean->fetched_row['date_finish']){ //if the end date of a current task is changed
48
+        if ($bean->date_finish != $bean->fetched_row['date_finish']) { //if the end date of a current task is changed
49 49
 
50 50
             $diff = $this->count_days($bean->date_finish, $bean->fetched_row['date_finish']); //Gets the difference in days
51 51
 
52
-            foreach($tasks as $task){ //loop through all dependant tasks
52
+            foreach ($tasks as $task) { //loop through all dependant tasks
53 53
 
54
-                $rel_type = $task->relationship_type;//Determine their dependency type
54
+                $rel_type = $task->relationship_type; //Determine their dependency type
55 55
 
56
-                if($rel_type == 'FS'){//if its a Finish to start
56
+                if ($rel_type == 'FS') {//if its a Finish to start
57 57
                     //Modify the task's start and end date dependant on the difference in days
58 58
                     $start = new DateTime($task->date_start);
59 59
                     $start = $start->modify($diff);
60 60
                     $startdate = $start->format('Y-m-d');
61 61
 
62
-                    $duration = $task->duration - 1;//take one off to maintain correct gantt bar length
62
+                    $duration = $task->duration - 1; //take one off to maintain correct gantt bar length
63 63
 
64 64
                     $enddate = $start->modify('+'.$duration.' days');
65 65
                     $enddate = $enddate->format('Y-m-d');
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
                     $task->save();
70 70
 
71 71
                 }
72
-                else if($rel_type == 'SS'){//if its a start to start
72
+                else if ($rel_type == 'SS') {//if its a start to start
73 73
                     //check if the tasks duration has not been changed so that it does not update when the parent tasks duration is changed
74
-                    if($bean->fetched_row['duration'] == $bean->duration){
74
+                    if ($bean->fetched_row['duration'] == $bean->duration) {
75 75
 
76 76
                         $start = new DateTime($task->date_start);
77 77
                         $start = $start->modify($diff);
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     }
97 97
 
98 98
     //Gets the difference in days between two dates
99
-    function count_days($start_date, $end_date){
99
+    function count_days($start_date, $end_date) {
100 100
 
101 101
         $d1 = new DateTime($start_date);
102 102
         $d2 = new DateTime($end_date);
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         if ($difference->invert == 1) {
105 105
             return '+'.$difference->d.' days'; //returns positive days
106 106
         } else {
107
-            return -$difference->d.' days';//returns negative days
107
+            return -$difference->d.' days'; //returns negative days
108 108
         }
109 109
 
110 110
     }
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -68,8 +70,7 @@  discard block
 block discarded – undo
68 70
                     $task->date_finish = $enddate;
69 71
                     $task->save();
70 72
 
71
-                }
72
-                else if($rel_type == 'SS'){//if its a start to start
73
+                } else if($rel_type == 'SS'){//if its a start to start
73 74
                     //check if the tasks duration has not been changed so that it does not update when the parent tasks duration is changed
74 75
                     if($bean->fetched_row['duration'] == $bean->duration){
75 76
 
Please login to merge, or discard this patch.
modules/ProjectTask/ProjectTaskQuickCreate.php 3 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -75,29 +75,29 @@
 block discarded – undo
75 75
 ///
76 76
 /// SETUP PARENT POPUP
77 77
 
78
-	$popup_request_data = array(
79
-		'call_back_function' => 'set_return',
80
-		'form_name' => 'projectTypeQuickCreate',
81
-		'field_to_name_array' => array(
82
-			'id' => 'parent_id',
83
-			'name' => 'parent_name',
84
-			),
85
-		);
78
+    $popup_request_data = array(
79
+        'call_back_function' => 'set_return',
80
+        'form_name' => 'projectTypeQuickCreate',
81
+        'field_to_name_array' => array(
82
+            'id' => 'parent_id',
83
+            'name' => 'parent_name',
84
+            ),
85
+        );
86 86
 
87
-	$encoded_parent_popup_request_data = $json->encode($popup_request_data);
88
-	$this->ss->assign('encoded_parent_popup_request_data', $encoded_parent_popup_request_data);        
87
+    $encoded_parent_popup_request_data = $json->encode($popup_request_data);
88
+    $this->ss->assign('encoded_parent_popup_request_data', $encoded_parent_popup_request_data);        
89 89
         
90
-		$popup_request_data = array(
91
-			'call_back_function' => 'set_return',
92
-			'form_name' => 'projectTaskQuickCreate',
93
-			'field_to_name_array' => array(
94
-				'id' => 'account_id',
95
-				'name' => 'account_name',
96
-			),
97
-		);
90
+        $popup_request_data = array(
91
+            'call_back_function' => 'set_return',
92
+            'form_name' => 'projectTaskQuickCreate',
93
+            'field_to_name_array' => array(
94
+                'id' => 'account_id',
95
+                'name' => 'account_name',
96
+            ),
97
+        );
98 98
 	
99
-		$encoded_popup_request_data = $json->encode($popup_request_data);
100
-		$this->ss->assign('encoded_popup_request_data', $encoded_popup_request_data);        
99
+        $encoded_popup_request_data = $json->encode($popup_request_data);
100
+        $this->ss->assign('encoded_popup_request_data', $encoded_popup_request_data);        
101 101
 
102 102
         
103 103
     }   
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
   
56 56
         $this->ss->assign("SALUTATION_OPTIONS", get_select_options_with_id($app_list_strings['salutation_dom'], ''));
57 57
 
58
-        if($this->viaAJAX) { // override for ajax call
58
+        if ($this->viaAJAX) { // override for ajax call
59 59
             $this->ss->assign('saveOnclick', "onclick='if(check_form(\"contactsQuickCreate\")) return SUGAR.subpanelUtils.inlineSave(this.form.id, \"contacts\"); else return false;'");
60 60
             $this->ss->assign('cancelOnclick', "onclick='return SUGAR.subpanelUtils.cancelCreate(\"subpanel_contacts\")';");
61 61
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/ProjectTask/MyProjectTasks.php 3 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -59,19 +59,19 @@
 block discarded – undo
59 59
 $ListView = new ListView();
60 60
 $seedProjectTask = new ProjectTask();
61 61
 $where = "project_task.assigned_user_id='{$current_user->id}'"
62
-	. " AND (project_task.status IS NULL OR (project_task.status!='Completed' AND project_task.status!='Deferred'))"
63
-	. " AND (project_task.date_start IS NULL OR project_task.date_start <= '$today')";
62
+    . " AND (project_task.status IS NULL OR (project_task.status!='Completed' AND project_task.status!='Deferred'))"
63
+    . " AND (project_task.date_start IS NULL OR project_task.date_start <= '$today')";
64 64
 $ListView->initNewXTemplate('modules/ProjectTask/MyProjectTasks.html',
65
-	$current_module_strings);
65
+    $current_module_strings);
66 66
 $header_text = '';
67 67
 
68 68
 if(is_admin($current_user)
69
-	&& $_REQUEST['module'] != 'DynamicLayout'
70
-	&& !empty($_SESSION['editinplace']))
69
+    && $_REQUEST['module'] != 'DynamicLayout'
70
+    && !empty($_SESSION['editinplace']))
71 71
 {	
72
-	$header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=MyTasks&from_module=Tasks'>"
73
-		. SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])
74
-		. '</a>';
72
+    $header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=MyTasks&from_module=Tasks'>"
73
+        . SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])
74
+        . '</a>';
75 75
 }
76 76
 $ListView->setHeaderTitle($current_module_strings['LBL_LIST_MY_PROJECT_TASKS'].$header_text);
77 77
 $ListView->setQuery($where, "", "date_due,priority desc", "PROJECT_TASK");
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 	$current_module_strings);
66 66
 $header_text = '';
67 67
 
68
-if(is_admin($current_user)
68
+if (is_admin($current_user)
69 69
 	&& $_REQUEST['module'] != 'DynamicLayout'
70 70
 	&& !empty($_SESSION['editinplace']))
71 71
 {	
72 72
 	$header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=MyTasks&from_module=Tasks'>"
73
-		. SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])
73
+		. SugarThemeRegistry::current()->getImage("EditLayout", "border='0' align='bottom'", null, null, '.gif', $mod_strings['LBL_EDITLAYOUT'])
74 74
 		. '</a>';
75 75
 }
76 76
 $ListView->setHeaderTitle($current_module_strings['LBL_LIST_MY_PROJECT_TASKS'].$header_text);
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/additionalDetails.php 3 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -42,31 +42,31 @@
 block discarded – undo
42 42
 
43 43
 
44 44
 function additionalDetailsProjectTask($fields) {
45
-	static $mod_strings;
46
-	if(empty($mod_strings)) {
47
-		global $current_language;
48
-		$mod_strings = return_module_language($current_language, 'ProjectTask');
49
-	}
45
+    static $mod_strings;
46
+    if(empty($mod_strings)) {
47
+        global $current_language;
48
+        $mod_strings = return_module_language($current_language, 'ProjectTask');
49
+    }
50 50
 		
51
-	$overlib_string = '';
52
-	if(!empty($fields['PRIORITY'])) $overlib_string .= '<b>' . $mod_strings['LBL_PRIORITY'] . '</b> ' . $fields['PRIORITY'] . '<br>';
53
-	if(!empty($fields['PERCENT_COMPLETE'])) $overlib_string .= '<b>' . $mod_strings['LBL_PERCENT_COMPLETE'] . '</b> ' . $fields['PERCENT_COMPLETE'] . '%<br>';	
54
-	if(!empty($fields['ESTIMATED_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ESTIMATED_EFFORT'] . '</b> ' . $fields['ESTIMATED_EFFORT'] . '<br>';	
55
-	if(!empty($fields['ACTUAL_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ACTUAL_EFFORT'] . '</b> ' . $fields['ACTUAL_EFFORT'] . '<br>';
56
-	if(!empty($fields['TASK_NUMBER'])) $overlib_string .= '<b>' . $mod_strings['LBL_TASK_NUMBER'] . '</b> ' . $fields['TASK_NUMBER'] . '<br>';
57
-	if(!empty($fields['DATE_START'])) $overlib_string .= '<b>' . $mod_strings['LBL_DATE_START'] . '</b> ' . $fields['DATE_START'] . ' ' . $fields['TIME_START'] . '<br>';
51
+    $overlib_string = '';
52
+    if(!empty($fields['PRIORITY'])) $overlib_string .= '<b>' . $mod_strings['LBL_PRIORITY'] . '</b> ' . $fields['PRIORITY'] . '<br>';
53
+    if(!empty($fields['PERCENT_COMPLETE'])) $overlib_string .= '<b>' . $mod_strings['LBL_PERCENT_COMPLETE'] . '</b> ' . $fields['PERCENT_COMPLETE'] . '%<br>';	
54
+    if(!empty($fields['ESTIMATED_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ESTIMATED_EFFORT'] . '</b> ' . $fields['ESTIMATED_EFFORT'] . '<br>';	
55
+    if(!empty($fields['ACTUAL_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ACTUAL_EFFORT'] . '</b> ' . $fields['ACTUAL_EFFORT'] . '<br>';
56
+    if(!empty($fields['TASK_NUMBER'])) $overlib_string .= '<b>' . $mod_strings['LBL_TASK_NUMBER'] . '</b> ' . $fields['TASK_NUMBER'] . '<br>';
57
+    if(!empty($fields['DATE_START'])) $overlib_string .= '<b>' . $mod_strings['LBL_DATE_START'] . '</b> ' . $fields['DATE_START'] . ' ' . $fields['TIME_START'] . '<br>';
58 58
 		
59
-	if(!empty($fields['DESCRIPTION'])) {
60
-		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
61
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
62
-	}	
59
+    if(!empty($fields['DESCRIPTION'])) {
60
+        $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
61
+        if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
62
+    }	
63 63
 
64
-	return array('fieldToAddTo' => 'NAME', 
65
-				 'string' => $overlib_string, 
66
-				 'editLink' => "index.php?action=EditView&module=ProjectTask&return_module=ProjectTask&record={$fields['ID']}", 
67
-				 'viewLink' => "index.php?action=DetailView&module=ProjectTask&return_module=ProjectTask&record={$fields['ID']}");
64
+    return array('fieldToAddTo' => 'NAME', 
65
+                    'string' => $overlib_string, 
66
+                    'editLink' => "index.php?action=EditView&module=ProjectTask&return_module=ProjectTask&record={$fields['ID']}", 
67
+                    'viewLink' => "index.php?action=DetailView&module=ProjectTask&return_module=ProjectTask&record={$fields['ID']}");
68 68
 }
69 69
  
70
- ?>
70
+    ?>
71 71
  
72 72
  
73 73
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -43,22 +43,22 @@  discard block
 block discarded – undo
43 43
 
44 44
 function additionalDetailsProjectTask($fields) {
45 45
 	static $mod_strings;
46
-	if(empty($mod_strings)) {
46
+	if (empty($mod_strings)) {
47 47
 		global $current_language;
48 48
 		$mod_strings = return_module_language($current_language, 'ProjectTask');
49 49
 	}
50 50
 		
51 51
 	$overlib_string = '';
52
-	if(!empty($fields['PRIORITY'])) $overlib_string .= '<b>' . $mod_strings['LBL_PRIORITY'] . '</b> ' . $fields['PRIORITY'] . '<br>';
53
-	if(!empty($fields['PERCENT_COMPLETE'])) $overlib_string .= '<b>' . $mod_strings['LBL_PERCENT_COMPLETE'] . '</b> ' . $fields['PERCENT_COMPLETE'] . '%<br>';	
54
-	if(!empty($fields['ESTIMATED_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ESTIMATED_EFFORT'] . '</b> ' . $fields['ESTIMATED_EFFORT'] . '<br>';	
55
-	if(!empty($fields['ACTUAL_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ACTUAL_EFFORT'] . '</b> ' . $fields['ACTUAL_EFFORT'] . '<br>';
56
-	if(!empty($fields['TASK_NUMBER'])) $overlib_string .= '<b>' . $mod_strings['LBL_TASK_NUMBER'] . '</b> ' . $fields['TASK_NUMBER'] . '<br>';
57
-	if(!empty($fields['DATE_START'])) $overlib_string .= '<b>' . $mod_strings['LBL_DATE_START'] . '</b> ' . $fields['DATE_START'] . ' ' . $fields['TIME_START'] . '<br>';
52
+	if (!empty($fields['PRIORITY'])) $overlib_string .= '<b>'.$mod_strings['LBL_PRIORITY'].'</b> '.$fields['PRIORITY'].'<br>';
53
+	if (!empty($fields['PERCENT_COMPLETE'])) $overlib_string .= '<b>'.$mod_strings['LBL_PERCENT_COMPLETE'].'</b> '.$fields['PERCENT_COMPLETE'].'%<br>';	
54
+	if (!empty($fields['ESTIMATED_EFFORT'])) $overlib_string .= '<b>'.$mod_strings['LBL_ESTIMATED_EFFORT'].'</b> '.$fields['ESTIMATED_EFFORT'].'<br>';	
55
+	if (!empty($fields['ACTUAL_EFFORT'])) $overlib_string .= '<b>'.$mod_strings['LBL_ACTUAL_EFFORT'].'</b> '.$fields['ACTUAL_EFFORT'].'<br>';
56
+	if (!empty($fields['TASK_NUMBER'])) $overlib_string .= '<b>'.$mod_strings['LBL_TASK_NUMBER'].'</b> '.$fields['TASK_NUMBER'].'<br>';
57
+	if (!empty($fields['DATE_START'])) $overlib_string .= '<b>'.$mod_strings['LBL_DATE_START'].'</b> '.$fields['DATE_START'].' '.$fields['TIME_START'].'<br>';
58 58
 		
59
-	if(!empty($fields['DESCRIPTION'])) {
60
-		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
61
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
59
+	if (!empty($fields['DESCRIPTION'])) {
60
+		$overlib_string .= '<b>'.$mod_strings['LBL_DESCRIPTION'].'</b> '.substr($fields['DESCRIPTION'], 0, 300);
61
+		if (strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
62 62
 	}	
63 63
 
64 64
 	return array('fieldToAddTo' => 'NAME', 
Please login to merge, or discard this patch.
Braces   +24 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -49,16 +51,30 @@  discard block
 block discarded – undo
49 51
 	}
50 52
 		
51 53
 	$overlib_string = '';
52
-	if(!empty($fields['PRIORITY'])) $overlib_string .= '<b>' . $mod_strings['LBL_PRIORITY'] . '</b> ' . $fields['PRIORITY'] . '<br>';
53
-	if(!empty($fields['PERCENT_COMPLETE'])) $overlib_string .= '<b>' . $mod_strings['LBL_PERCENT_COMPLETE'] . '</b> ' . $fields['PERCENT_COMPLETE'] . '%<br>';	
54
-	if(!empty($fields['ESTIMATED_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ESTIMATED_EFFORT'] . '</b> ' . $fields['ESTIMATED_EFFORT'] . '<br>';	
55
-	if(!empty($fields['ACTUAL_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ACTUAL_EFFORT'] . '</b> ' . $fields['ACTUAL_EFFORT'] . '<br>';
56
-	if(!empty($fields['TASK_NUMBER'])) $overlib_string .= '<b>' . $mod_strings['LBL_TASK_NUMBER'] . '</b> ' . $fields['TASK_NUMBER'] . '<br>';
57
-	if(!empty($fields['DATE_START'])) $overlib_string .= '<b>' . $mod_strings['LBL_DATE_START'] . '</b> ' . $fields['DATE_START'] . ' ' . $fields['TIME_START'] . '<br>';
54
+	if(!empty($fields['PRIORITY'])) {
55
+	    $overlib_string .= '<b>' . $mod_strings['LBL_PRIORITY'] . '</b> ' . $fields['PRIORITY'] . '<br>';
56
+	}
57
+	if(!empty($fields['PERCENT_COMPLETE'])) {
58
+	    $overlib_string .= '<b>' . $mod_strings['LBL_PERCENT_COMPLETE'] . '</b> ' . $fields['PERCENT_COMPLETE'] . '%<br>';
59
+	}
60
+	if(!empty($fields['ESTIMATED_EFFORT'])) {
61
+	    $overlib_string .= '<b>' . $mod_strings['LBL_ESTIMATED_EFFORT'] . '</b> ' . $fields['ESTIMATED_EFFORT'] . '<br>';
62
+	}
63
+	if(!empty($fields['ACTUAL_EFFORT'])) {
64
+	    $overlib_string .= '<b>' . $mod_strings['LBL_ACTUAL_EFFORT'] . '</b> ' . $fields['ACTUAL_EFFORT'] . '<br>';
65
+	}
66
+	if(!empty($fields['TASK_NUMBER'])) {
67
+	    $overlib_string .= '<b>' . $mod_strings['LBL_TASK_NUMBER'] . '</b> ' . $fields['TASK_NUMBER'] . '<br>';
68
+	}
69
+	if(!empty($fields['DATE_START'])) {
70
+	    $overlib_string .= '<b>' . $mod_strings['LBL_DATE_START'] . '</b> ' . $fields['DATE_START'] . ' ' . $fields['TIME_START'] . '<br>';
71
+	}
58 72
 		
59 73
 	if(!empty($fields['DESCRIPTION'])) {
60 74
 		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
61
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
75
+		if(strlen($fields['DESCRIPTION']) > 300) {
76
+		    $overlib_string .= '...';
77
+		}
62 78
 	}	
63 79
 
64 80
 	return array('fieldToAddTo' => 'NAME', 
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/acldefs.php 3 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -40,32 +40,32 @@
 block discarded – undo
40 40
 
41 41
 // created: 2005-11-04 15:39:46
42 42
 $acldefs['ProjectTask'] = array (
43
-  'forms' => 
44
-  array (
43
+    'forms' => 
44
+    array (
45 45
     'by_name' => 
46 46
     array (
47
-      'change_project' => 
48
-      array (
47
+        'change_project' => 
48
+        array (
49 49
         'display_option' => 'disabled',
50 50
         'action_option' => 'list',
51 51
         'app_action' => 'EditView',
52 52
         'module' => 'Project',
53
-      ),
54
-      'change_parent' => 
55
-      array (
53
+        ),
54
+        'change_parent' => 
55
+        array (
56 56
         'display_option' => 'disabled',
57 57
         'action_option' => 'list',
58 58
         'app_action' => 'EditView',
59 59
         'module' => 'ProjectTask',
60
-      ),
60
+        ),
61
+    ),
61 62
     ),
62
-  ),
63
-  'form_names' => 
64
-  array (
63
+    'form_names' => 
64
+    array (
65 65
     'by_id' => 'by_id',
66 66
     'by_name' => 'by_name',
67 67
     'DetailView' => 'DetailView',
68 68
     'EditView' => 'EditView',
69
-  ),
69
+    ),
70 70
 );
71 71
 ?>
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -39,20 +39,20 @@  discard block
 block discarded – undo
39 39
  ********************************************************************************/
40 40
 
41 41
 // created: 2005-11-04 15:39:46
42
-$acldefs['ProjectTask'] = array (
42
+$acldefs['ProjectTask'] = array(
43 43
   'forms' => 
44
-  array (
44
+  array(
45 45
     'by_name' => 
46
-    array (
46
+    array(
47 47
       'change_project' => 
48
-      array (
48
+      array(
49 49
         'display_option' => 'disabled',
50 50
         'action_option' => 'list',
51 51
         'app_action' => 'EditView',
52 52
         'module' => 'Project',
53 53
       ),
54 54
       'change_parent' => 
55
-      array (
55
+      array(
56 56
         'display_option' => 'disabled',
57 57
         'action_option' => 'list',
58 58
         'app_action' => 'EditView',
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     ),
62 62
   ),
63 63
   'form_names' => 
64
-  array (
64
+  array(
65 65
     'by_id' => 'by_id',
66 66
     'by_name' => 'by_name',
67 67
     'DetailView' => 'DetailView',
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/editviewdefs.php 2 patches
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -1,133 +1,133 @@
 block discarded – undo
1 1
 <?php
2 2
 $viewdefs ['ProjectTask'] = 
3 3
 array (
4
-  'EditView' => 
5
-  array (
4
+    'EditView' => 
5
+    array (
6 6
     'templateMeta' => 
7 7
     array (
8
-      'maxColumns' => '2',
9
-      'widths' => 
10
-      array (
8
+        'maxColumns' => '2',
9
+        'widths' => 
10
+        array (
11 11
         0 => 
12 12
         array (
13
-          'label' => '10',
14
-          'field' => '30',
13
+            'label' => '10',
14
+            'field' => '30',
15 15
         ),
16 16
         1 => 
17 17
         array (
18
-          'label' => '10',
19
-          'field' => '30',
18
+            'label' => '10',
19
+            'field' => '30',
20 20
         ),
21
-      ),
22
-      'includes' => 
23
-      array (
21
+        ),
22
+        'includes' => 
23
+        array (
24 24
         0 => 
25 25
         array (
26
-          'file' => 'modules/ProjectTask/ProjectTask.js',
26
+            'file' => 'modules/ProjectTask/ProjectTask.js',
27 27
         ),
28
-      ),
29
-      'useTabs' => false,
30
-      'tabDefs' => 
31
-      array (
28
+        ),
29
+        'useTabs' => false,
30
+        'tabDefs' => 
31
+        array (
32 32
         'DEFAULT' => 
33 33
         array (
34
-          'newTab' => false,
35
-          'panelDefault' => 'expanded',
34
+            'newTab' => false,
35
+            'panelDefault' => 'expanded',
36 36
         ),
37 37
         'LBL_PANEL_TIMELINE' =>
38 38
         array (
39
-          'newTab' => false,
40
-          'panelDefault' => 'expanded',
39
+            'newTab' => false,
40
+            'panelDefault' => 'expanded',
41
+        ),
41 42
         ),
42
-      ),
43
-      'syncDetailEditViews' => false,
43
+        'syncDetailEditViews' => false,
44 44
     ),
45 45
     'panels' => 
46 46
     array (
47
-      'default' => 
48
-      array (
47
+        'default' => 
48
+        array (
49 49
         0 => 
50 50
         array (
51
-          0 => 
52
-          array (
51
+            0 => 
52
+            array (
53 53
             'name' => 'name',
54 54
             'label' => 'LBL_NAME',
55
-          ),
56
-          1 => 
57
-          array (
55
+            ),
56
+            1 => 
57
+            array (
58 58
             'name' => 'status',
59 59
             'customCode' => '<select name="{$fields.status.name}" id="{$fields.status.name}" title="" tabindex="s" onchange="update_percent_complete(this.value);">{if isset($fields.status.value) && $fields.status.value != ""}{html_options options=$fields.status.options selected=$fields.status.value}{else}{html_options options=$fields.status.options selected=$fields.status.default}{/if}</select>',
60
-          ),
60
+            ),
61 61
         ),
62 62
         1 => 
63 63
         array (
64
-          0 => 
65
-          array (
64
+            0 => 
65
+            array (
66 66
             'name' => 'date_start',
67
-          ),
68
-          1 => 
69
-          array (
67
+            ),
68
+            1 => 
69
+            array (
70 70
             'name' => 'date_finish',
71
-          ),
71
+            ),
72 72
         ),
73 73
         2 => 
74 74
         array (
75
-          0 => 'priority',
76
-          1 => 
77
-          array (
75
+            0 => 'priority',
76
+            1 => 
77
+            array (
78 78
             'name' => 'percent_complete',
79 79
             'customCode' => '<input type="text" name="{$fields.percent_complete.name}" id="{$fields.percent_complete.name}" size="30" value="{$fields.percent_complete.value}" title="" tabindex="0" onChange="update_status(this.value);" /></tr>',
80
-          ),
80
+            ),
81 81
         ),
82 82
         3 => 
83 83
         array (
84
-          0 => 
85
-          array (
84
+            0 => 
85
+            array (
86 86
             'name' => 'project_name',
87 87
             'label' => 'LBL_PROJECT_NAME',
88
-          ),
89
-          1 => 'task_number',
88
+            ),
89
+            1 => 'task_number',
90 90
         ),
91 91
         4 => 
92 92
         array (
93
-          0 => 'assigned_user_name',
93
+            0 => 'assigned_user_name',
94 94
         ),
95 95
         5 => 
96 96
         array (
97
-          0 => 
98
-          array (
97
+            0 => 
98
+            array (
99 99
             'name' => 'description',
100
-          ),
100
+            ),
101
+        ),
101 102
         ),
102
-      ),
103
-      'LBL_PANEL_TIMELINE' =>
104
-      array (
103
+        'LBL_PANEL_TIMELINE' =>
104
+        array (
105 105
         0 => 
106 106
         array (
107
-          0 => 'estimated_effort',
108
-          1 => 
109
-          array (
107
+            0 => 'estimated_effort',
108
+            1 => 
109
+            array (
110 110
             'name' => 'actual_effort',
111 111
             'label' => 'LBL_ACTUAL_EFFORT',
112
-          ),
112
+            ),
113 113
         ),
114 114
         1 => 
115 115
         array (
116
-          0 => 
117
-          array (
116
+            0 => 
117
+            array (
118 118
             'name' => 'relationship_type',
119 119
             'studio' => 'visible',
120 120
             'label' => 'LBL_RELATIONSHIP_TYPE',
121
-          ),
122
-          1 => 'utilization',
121
+            ),
122
+            1 => 'utilization',
123 123
         ),
124 124
         2 => 
125 125
         array (
126
-          0 => 'order_number',
127
-          1 => 'milestone_flag',
126
+            0 => 'order_number',
127
+            1 => 'milestone_flag',
128
+        ),
128 129
         ),
129
-      ),
130 130
     ),
131
-  ),
131
+    ),
132 132
 );
133 133
 ?>
Please login to merge, or discard this patch.
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -1,41 +1,41 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $viewdefs ['ProjectTask'] = 
3
-array (
3
+array(
4 4
   'EditView' => 
5
-  array (
5
+  array(
6 6
     'templateMeta' => 
7
-    array (
7
+    array(
8 8
       'maxColumns' => '2',
9 9
       'widths' => 
10
-      array (
10
+      array(
11 11
         0 => 
12
-        array (
12
+        array(
13 13
           'label' => '10',
14 14
           'field' => '30',
15 15
         ),
16 16
         1 => 
17
-        array (
17
+        array(
18 18
           'label' => '10',
19 19
           'field' => '30',
20 20
         ),
21 21
       ),
22 22
       'includes' => 
23
-      array (
23
+      array(
24 24
         0 => 
25
-        array (
25
+        array(
26 26
           'file' => 'modules/ProjectTask/ProjectTask.js',
27 27
         ),
28 28
       ),
29 29
       'useTabs' => false,
30 30
       'tabDefs' => 
31
-      array (
31
+      array(
32 32
         'DEFAULT' => 
33
-        array (
33
+        array(
34 34
           'newTab' => false,
35 35
           'panelDefault' => 'expanded',
36 36
         ),
37 37
         'LBL_PANEL_TIMELINE' =>
38
-        array (
38
+        array(
39 39
           'newTab' => false,
40 40
           'panelDefault' => 'expanded',
41 41
         ),
@@ -43,78 +43,78 @@  discard block
 block discarded – undo
43 43
       'syncDetailEditViews' => false,
44 44
     ),
45 45
     'panels' => 
46
-    array (
46
+    array(
47 47
       'default' => 
48
-      array (
48
+      array(
49 49
         0 => 
50
-        array (
50
+        array(
51 51
           0 => 
52
-          array (
52
+          array(
53 53
             'name' => 'name',
54 54
             'label' => 'LBL_NAME',
55 55
           ),
56 56
           1 => 
57
-          array (
57
+          array(
58 58
             'name' => 'status',
59 59
             'customCode' => '<select name="{$fields.status.name}" id="{$fields.status.name}" title="" tabindex="s" onchange="update_percent_complete(this.value);">{if isset($fields.status.value) && $fields.status.value != ""}{html_options options=$fields.status.options selected=$fields.status.value}{else}{html_options options=$fields.status.options selected=$fields.status.default}{/if}</select>',
60 60
           ),
61 61
         ),
62 62
         1 => 
63
-        array (
63
+        array(
64 64
           0 => 
65
-          array (
65
+          array(
66 66
             'name' => 'date_start',
67 67
           ),
68 68
           1 => 
69
-          array (
69
+          array(
70 70
             'name' => 'date_finish',
71 71
           ),
72 72
         ),
73 73
         2 => 
74
-        array (
74
+        array(
75 75
           0 => 'priority',
76 76
           1 => 
77
-          array (
77
+          array(
78 78
             'name' => 'percent_complete',
79 79
             'customCode' => '<input type="text" name="{$fields.percent_complete.name}" id="{$fields.percent_complete.name}" size="30" value="{$fields.percent_complete.value}" title="" tabindex="0" onChange="update_status(this.value);" /></tr>',
80 80
           ),
81 81
         ),
82 82
         3 => 
83
-        array (
83
+        array(
84 84
           0 => 
85
-          array (
85
+          array(
86 86
             'name' => 'project_name',
87 87
             'label' => 'LBL_PROJECT_NAME',
88 88
           ),
89 89
           1 => 'task_number',
90 90
         ),
91 91
         4 => 
92
-        array (
92
+        array(
93 93
           0 => 'assigned_user_name',
94 94
         ),
95 95
         5 => 
96
-        array (
96
+        array(
97 97
           0 => 
98
-          array (
98
+          array(
99 99
             'name' => 'description',
100 100
           ),
101 101
         ),
102 102
       ),
103 103
       'LBL_PANEL_TIMELINE' =>
104
-      array (
104
+      array(
105 105
         0 => 
106
-        array (
106
+        array(
107 107
           0 => 'estimated_effort',
108 108
           1 => 
109
-          array (
109
+          array(
110 110
             'name' => 'actual_effort',
111 111
             'label' => 'LBL_ACTUAL_EFFORT',
112 112
           ),
113 113
         ),
114 114
         1 => 
115
-        array (
115
+        array(
116 116
           0 => 
117
-          array (
117
+          array(
118 118
             'name' => 'relationship_type',
119 119
             'studio' => 'visible',
120 120
             'label' => 'LBL_RELATIONSHIP_TYPE',
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
           1 => 'utilization',
123 123
         ),
124 124
         2 => 
125
-        array (
125
+        array(
126 126
           0 => 'order_number',
127 127
           1 => 'milestone_flag',
128 128
         ),
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/popupdefs.php 3 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@
 block discarded – undo
40 40
 
41 41
 
42 42
 $popupMeta = array('moduleMain' => 'ProjectTask',
43
-						'varName' => 'PROJECT_TASK',
44
-						'orderBy' => 'name',
45
-						'whereClauses' => 
46
-							array('name' => 'project_task.name'),
47
-						'searchInputs' =>
48
-							array('name')
49
-						);
43
+                        'varName' => 'PROJECT_TASK',
44
+                        'orderBy' => 'name',
45
+                        'whereClauses' => 
46
+                            array('name' => 'project_task.name'),
47
+                        'searchInputs' =>
48
+                            array('name')
49
+                        );
50 50
 
51 51
 
52 52
 ?>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/searchdefs.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -38,24 +38,24 @@
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 
41
-  $searchdefs['ProjectTask'] = array(
42
-					'templateMeta' => array(
43
-							'maxColumns' => '3', 
41
+    $searchdefs['ProjectTask'] = array(
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
-						 	'name',
50
-						 	array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
48
+                        'basic_search' => array(
49
+                                'name',
50
+                                array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
51 51
 						 	
52
-						),
53
-						'advanced_search' => array(
54
-							'name',
55
-							array('name' => 'project_name', 'label'=>'LBL_PROJECT_NAME' ), 
56
-							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
+                            'name',
55
+                            array('name' => 'project_name', 'label'=>'LBL_PROJECT_NAME' ), 
56
+                            array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
57 57
 							
58
-						),
59
-					),
60
- 			   );
58
+                        ),
59
+                    ),
60
+                );
61 61
 ?>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 						),
53 53
 						'advanced_search' => array(
54 54
 							'name',
55
-							array('name' => 'project_name', 'label'=>'LBL_PROJECT_NAME' ), 
55
+							array('name' => 'project_name', 'label'=>'LBL_PROJECT_NAME'), 
56 56
 							array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
57 57
 							
58 58
 						),
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/studio.php 3 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -42,28 +42,28 @@
 block discarded – undo
42 42
 
43 43
 
44 44
 $GLOBALS['studioDefs']['ProjectTask'] = array(
45
-	'LBL_DETAILVIEW'=>array(
46
-				'template'=>'xtpl',
47
-				'template_file'=>'modules/ProjectTask/DetailView.html',
48
-				'php_file'=>'modules/ProjectTask/DetailView.php',
49
-				'type'=>'DetailView',
50
-				),
51
-	'LBL_EDITVIEW'=>array(
52
-				'template'=>'xtpl',
53
-				'template_file'=>'modules/ProjectTask/EditView.html',
54
-				'php_file'=>'modules/ProjectTask/EditView.php',
55
-				'type'=>'EditView',
56
-				),
57
-	'LBL_LISTVIEW'=>array(
58
-				'template'=>'listview',
59
-				'meta_file'=>'modules/ProjectTask/listviewdefs.php',
60
-				'type'=>'ListView',
61
-				),
62
-	'LBL_SEARCHFORM'=>array(
63
-				'template'=>'xtpl',
64
-				'template_file'=>'modules/ProjectTask/SearchForm.html',
65
-				'php_file'=>'modules/ProjectTask/ListView.php',
66
-				'type'=>'SearchForm',
67
-				),
45
+    'LBL_DETAILVIEW'=>array(
46
+                'template'=>'xtpl',
47
+                'template_file'=>'modules/ProjectTask/DetailView.html',
48
+                'php_file'=>'modules/ProjectTask/DetailView.php',
49
+                'type'=>'DetailView',
50
+                ),
51
+    'LBL_EDITVIEW'=>array(
52
+                'template'=>'xtpl',
53
+                'template_file'=>'modules/ProjectTask/EditView.html',
54
+                'php_file'=>'modules/ProjectTask/EditView.php',
55
+                'type'=>'EditView',
56
+                ),
57
+    'LBL_LISTVIEW'=>array(
58
+                'template'=>'listview',
59
+                'meta_file'=>'modules/ProjectTask/listviewdefs.php',
60
+                'type'=>'ListView',
61
+                ),
62
+    'LBL_SEARCHFORM'=>array(
63
+                'template'=>'xtpl',
64
+                'template_file'=>'modules/ProjectTask/SearchForm.html',
65
+                'php_file'=>'modules/ProjectTask/ListView.php',
66
+                'type'=>'SearchForm',
67
+                ),
68 68
 
69 69
 );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.