From vtigercrm-commits at vtiger.fosslabs.com Fri Dec 1 03:41:56 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Fri, 01 Dec 2006 11:41:56 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9930 - in /vtigercrm/branches/5.0.3: Smarty/templates/CustomView.tpl modules/CustomView/EditView.php Message-ID: <20061201114156.799FC788A9D@vtiger.fosslabs.com> Author: richie Date: Fri Dec 1 04:41:49 2006 New Revision: 9930 Log: i18N support added for custom filter columns Modified: vtigercrm/branches/5.0.3/Smarty/templates/CustomView.tpl vtigercrm/branches/5.0.3/modules/CustomView/EditView.php Modified: vtigercrm/branches/5.0.3/Smarty/templates/CustomView.tpl ============================================================================== --- vtigercrm/branches/5.0.3/Smarty/templates/CustomView.tpl (original) +++ vtigercrm/branches/5.0.3/Smarty/templates/CustomView.tpl Fri Dec 1 04:41:49 2006 @@ -146,7 +146,18 @@ {foreach item=filteroption key=label from=$CHOOSECOLUMN1} {foreach item=text from=$filteroption} - + {assign var=option_values value=$text.text} + {/foreach} {/foreach} {$CHOOSECOLUMN1} @@ -156,7 +167,18 @@ {foreach item=filteroption key=label from=$CHOOSECOLUMN2} {foreach item=text from=$filteroption} - + {assign var=option_values value=$text.text} + {/foreach} {/foreach} {$CHOOSECOLUMN2} @@ -166,7 +188,18 @@ {foreach item=filteroption key=label from=$CHOOSECOLUMN3} {foreach item=text from=$filteroption} - + {assign var=option_values value=$text.text} + {/foreach} {/foreach} {$CHOOSECOLUMN3} @@ -176,7 +209,18 @@ {foreach item=filteroption key=label from=$CHOOSECOLUMN4} {foreach item=text from=$filteroption} - + {assign var=option_values value=$text.text} + {/foreach} {/foreach} {$CHOOSECOLUMN4} @@ -189,7 +233,18 @@ {foreach item=filteroption key=label from=$CHOOSECOLUMN5} {foreach item=text from=$filteroption} - + {assign var=option_values value=$text.text} + {/foreach} {/foreach} {$CHOOSECOLUMN5} @@ -199,7 +254,18 @@ {foreach item=filteroption key=label from=$CHOOSECOLUMN6} {foreach item=text from=$filteroption} - + {assign var=option_values value=$text.text} + {/foreach} {/foreach} {$CHOOSECOLUMN6} @@ -209,7 +275,18 @@ {foreach item=filteroption key=label from=$CHOOSECOLUMN7} {foreach item=text from=$filteroption} - + {assign var=option_values value=$text.text} + {/foreach} {/foreach} {$CHOOSECOLUMN7} @@ -219,7 +296,18 @@ {foreach item=filteroption key=label from=$CHOOSECOLUMN8} {foreach item=text from=$filteroption} - + {assign var=option_values value=$text.text} + {/foreach} {/foreach} {$CHOOSECOLUMN8} @@ -231,7 +319,18 @@ {foreach item=filteroption key=label from=$CHOOSECOLUMN9} {foreach item=text from=$filteroption} - + {assign var=option_values value=$text.text} + {/foreach} {/foreach} {$CHOOSECOLUMN9} Modified: vtigercrm/branches/5.0.3/modules/CustomView/EditView.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/CustomView/EditView.php (original) +++ vtigercrm/branches/5.0.3/modules/CustomView/EditView.php Fri Dec 1 04:41:49 2006 @@ -54,7 +54,7 @@ $log->info('CustomView :: Successfully got StandardFilter for the module'.$cv_module); $stdfiltercolhtml = getStdFilterHTML($cv_module); $stdfilterjs = $oCustomView->getCriteriaJS(); - + $smarty->assign("MOD",$mod_strings); //step4 $advfilterhtml = getAdvCriteriaHTML(); for($i=1;$i<10;$i++) From vtigercrm-commits at vtiger.fosslabs.com Fri Dec 1 05:19:01 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Fri, 01 Dec 2006 13:19:01 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9931 - in /vtigercrm/branches/5.0.3: Smarty/templates/ modules/Settings/ modules/Settings/language/ modules/Users/ modules/Users/language/ modules/Webmails/ Message-ID: <20061201131901.5F0EC7896DF@vtiger.fosslabs.com> Author: richie Date: Fri Dec 1 06:18:44 2006 New Revision: 9931 Log: * Non admin users are allowed to confifure their own incoming mail server by done these changes Added: vtigercrm/branches/5.0.3/modules/Users/AddMailAccount.php vtigercrm/branches/5.0.3/modules/Users/SaveMailAccount.php Removed: vtigercrm/branches/5.0.3/modules/Settings/AddMailAccount.php vtigercrm/branches/5.0.3/modules/Settings/SaveMailAccount.php Modified: vtigercrm/branches/5.0.3/Smarty/templates/AddMailAccount.tpl vtigercrm/branches/5.0.3/Smarty/templates/Emails.tpl vtigercrm/branches/5.0.3/Smarty/templates/Webmails.tpl vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php vtigercrm/branches/5.0.3/modules/Webmails/MailBox.php Modified: vtigercrm/branches/5.0.3/Smarty/templates/AddMailAccount.tpl ============================================================================== --- vtigercrm/branches/5.0.3/Smarty/templates/AddMailAccount.tpl (original) +++ vtigercrm/branches/5.0.3/Smarty/templates/AddMailAccount.tpl Fri Dec 1 06:18:44 2006 @@ -21,7 +21,7 @@

- + Modified: vtigercrm/branches/5.0.3/Smarty/templates/Emails.tpl ============================================================================== --- vtigercrm/branches/5.0.3/Smarty/templates/Emails.tpl (original) +++ vtigercrm/branches/5.0.3/Smarty/templates/Emails.tpl Fri Dec 1 06:18:44 2006 @@ -66,7 +66,7 @@ {include file='Buttons_List.tpl'} - + @@ -96,7 +96,7 @@
-  {$MOD.LBL_SETTINGS} +  {$MOD.LBL_SETTINGS}
Modified: vtigercrm/branches/5.0.3/Smarty/templates/Webmails.tpl ============================================================================== --- vtigercrm/branches/5.0.3/Smarty/templates/Webmails.tpl (original) +++ vtigercrm/branches/5.0.3/Smarty/templates/Webmails.tpl Fri Dec 1 06:18:44 2006 @@ -37,7 +37,7 @@ -  {$MOD.LBL_SETTINGS} +  {$MOD.LBL_SETTINGS} {if $MODULE eq 'Products'} - - - + + + + {$APP.LBL_CREATE_BUTTON_LABEL} {$APP.Quote} - - + + {$APP.LBL_CREATE_BUTTON_LABEL} {$APP.Invoice} - - + + {$APP.LBL_CREATE_BUTTON_LABEL} {$APP.SalesOrder} - - + + {$APP.LBL_CREATE_BUTTON_LABEL} {$APP.PurchaseOrder} @@ -90,7 +91,7 @@ - + {$APP.LBL_CREATE_BUTTON_LABEL} {$APP.PurchaseOrder} @@ -120,7 +121,7 @@ - + {$APP.LBL_CREATE_BUTTON_LABEL} {$APP.Invoice} @@ -144,13 +145,14 @@ - - {$APP.LBL_GENERATE} {$APP.Invoice} - - + + {$APP.LBL_GENERATE} {$APP.Invoice} + + + - + {$APP.LBL_GENERATE} {$APP.SalesOrder} @@ -198,7 +200,8 @@ - + {$APP.LBL_EXPORT_TO_PDF} From vtigercrm-commits at vtiger.fosslabs.com Tue Dec 5 01:41:26 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Tue, 05 Dec 2006 09:41:26 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9937 - /vtigercrm/branches/5.0.3/modules/SalesOrder/SalesOrder.php Message-ID: <20061205094126.EC31F78993F@vtiger.fosslabs.com> Author: richie Date: Tue Dec 5 02:41:23 2006 New Revision: 9937 Log: assignedto add in invoice related list Modified: vtigercrm/branches/5.0.3/modules/SalesOrder/SalesOrder.php Modified: vtigercrm/branches/5.0.3/modules/SalesOrder/SalesOrder.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/SalesOrder/SalesOrder.php (original) +++ vtigercrm/branches/5.0.3/modules/SalesOrder/SalesOrder.php Tue Dec 5 02:41:23 2006 @@ -267,8 +267,16 @@ else $returnset = '&return_module=SalesOrder&return_action=CallRelatedList&return_id='.$id; - - $query = "select vtiger_crmentity.*, vtiger_invoice.*, vtiger_account.accountname, vtiger_salesorder.subject as salessubject from vtiger_invoice inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_invoice.invoiceid left outer join vtiger_account on vtiger_account.accountid=vtiger_invoice.accountid inner join vtiger_salesorder on vtiger_salesorder.salesorderid=vtiger_invoice.salesorderid left join vtiger_invoicegrouprelation on vtiger_invoice.invoiceid=vtiger_invoicegrouprelation.invoiceid left join vtiger_groups on vtiger_groups.groupname=vtiger_invoicegrouprelation.groupname where vtiger_crmentity.deleted=0 and vtiger_salesorder.salesorderid=".$id; + $query = "select vtiger_crmentity.*, vtiger_invoice.*, vtiger_account.accountname, vtiger_salesorder.subject as salessubject, vtiger_users.user_name + from vtiger_invoice + inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_invoice.invoiceid + left outer join vtiger_account on vtiger_account.accountid=vtiger_invoice.accountid + inner join vtiger_salesorder on vtiger_salesorder.salesorderid=vtiger_invoice.salesorderid + left join vtiger_users on vtiger_users.id=vtiger_crmentity.smownerid + left join vtiger_invoicegrouprelation on vtiger_invoice.invoiceid=vtiger_invoicegrouprelation.invoiceid + left join vtiger_groups on vtiger_groups.groupname=vtiger_invoicegrouprelation.groupname + where vtiger_crmentity.deleted=0 and vtiger_salesorder.salesorderid=".$id; + $log->debug("Exiting get_invoices method ..."); return GetRelatedList('SalesOrder','Invoice',$focus,$query,$button,$returnset); From vtigercrm-commits at vtiger.fosslabs.com Tue Dec 5 01:50:41 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Tue, 05 Dec 2006 09:50:41 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9938 - /vtigercrm/branches/5.0.3/modules/Reports/Reports.php Message-ID: <20061205095041.E6E1C789944@vtiger.fosslabs.com> Author: richie Date: Tue Dec 5 02:50:35 2006 New Revision: 9938 Log: activity type not displyed in report module - fixed Modified: vtigercrm/branches/5.0.3/modules/Reports/Reports.php Modified: vtigercrm/branches/5.0.3/modules/Reports/Reports.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/Reports/Reports.php (original) +++ vtigercrm/branches/5.0.3/modules/Reports/Reports.php Tue Dec 5 02:50:35 2006 @@ -320,6 +320,12 @@ $profileList = getCurrentUserProfileList(); $sql = "select * from vtiger_field inner join vtiger_profile2field on vtiger_profile2field.fieldid=vtiger_field.fieldid inner join vtiger_def_org_field on vtiger_def_org_field.fieldid=vtiger_field.fieldid where vtiger_field.uitype != 50 and vtiger_field.tabid=".$tabid." and vtiger_field.block in (".$block .") and vtiger_field.displaytype in (1,2) and vtiger_profile2field.visible=0 and vtiger_def_org_field.visible=0 and vtiger_profile2field.profileid in ".$profileList." group by vtiger_field.fieldid order by sequence"; } + //Added to include vtiger_activity type for Reports Module + if($module == 'Calendar' && $block == 19) + { + $module_columnlist['vtiger_activity:activitytype:Calendar_Activity_Type:activitytype:C'] = 'Activity Type'; + } + $result = $adb->query($sql); $noofrows = $adb->num_rows($result); for($i=0; $i<$noofrows; $i++) From vtigercrm-commits at vtiger.fosslabs.com Tue Dec 5 02:02:41 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Tue, 05 Dec 2006 10:02:41 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9939 - /vtigercrm/branches/5.0.3/data/CRMEntity.php Message-ID: <20061205100241.751C478993F@vtiger.fosslabs.com> Author: richie Date: Tue Dec 5 03:02:37 2006 New Revision: 9939 Log: Error while saving an event in edit mode Modified: vtigercrm/branches/5.0.3/data/CRMEntity.php Modified: vtigercrm/branches/5.0.3/data/CRMEntity.php ============================================================================== --- vtigercrm/branches/5.0.3/data/CRMEntity.php (original) +++ vtigercrm/branches/5.0.3/data/CRMEntity.php Tue Dec 5 03:02:37 2006 @@ -892,6 +892,12 @@ function insertIntoGroupTable($module) { + global $log; + + if($module == 'Events') + { + $module = 'Calendar'; + } if($this->mode=='edit') { @@ -900,12 +906,14 @@ { if($_REQUEST['assigntype'] == 'T') { - $groupname = $_REQUEST['assigned_group_name']; + $groupname = $_REQUEST['assigned_group_name']; + + updateModuleGroupRelation($module,$this->id,$groupname); } else - { + { updateModuleGroupRelation($module,$this->id,''); } @@ -913,8 +921,6 @@ } else { - - $groupname = $_REQUEST['assigned_group_name']; if($_REQUEST['assigntype'] == 'T') { From vtigercrm-commits at vtiger.fosslabs.com Tue Dec 5 02:18:40 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Tue, 05 Dec 2006 10:18:40 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9940 - in /vtigercrm/branches/5.0.3/modules: Settings/language/en_us.lang.php Users/language/en_us.lang.php Message-ID: <20061205101840.082FA78993F@vtiger.fosslabs.com> Author: richie Date: Tue Dec 5 03:18:33 2006 New Revision: 9940 Log: * language entry of LBL_MAIL_SERVER_SETTINGS has been moved from users to setting which is used only in settings Modified: vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php Modified: vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php (original) +++ vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php Tue Dec 5 03:18:33 2006 @@ -510,6 +510,7 @@ 'LBL_RSS_CATEGORY'=>'Rss Category', +'LBL_MAIL_SERVER_SETTINGS'=>'Outgoing Server', 'LBL_USAGEUNIT'=>'Usage Unit', 'LBL_GLACCT'=>'GL Account', 'LBL_QUOTE_STAGE'=>'Quote Stage', Modified: vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php (original) +++ vtigercrm/branches/5.0.3/modules/Users/language/en_us.lang.php Tue Dec 5 03:18:33 2006 @@ -622,7 +622,6 @@ 'LBL_MAIL_PROTOCOL'=>'Mail Protocol', 'LBL_LIST_PASSWORD'=>'Password', 'LBL_MAIL_SERVER_NAME'=>'Mail Server Name or IP', -'LBL_MAIL_SERVER_SETTINGS'=>'Outgoing Server', 'LBL_INCOME_SERVER_SETTINGS'=>'Incoming Server', 'LBL_TEST_SETTINGS'=>'Test my account setting immediately', 'LBL_TEST_BUTTON_TITLE'=>'Test my account now! [Alt+T]', From vtigercrm-commits at vtiger.fosslabs.com Tue Dec 5 22:40:31 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Wed, 06 Dec 2006 06:40:31 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9941 - /vtigercrm/branches/5.0.3/user_privileges/default_module_view.php Message-ID: <20061206064031.99831789433@vtiger.fosslabs.com> Author: richie Date: Tue Dec 5 23:40:27 2006 New Revision: 9941 Log: control M characters removed Modified: vtigercrm/branches/5.0.3/user_privileges/default_module_view.php Modified: vtigercrm/branches/5.0.3/user_privileges/default_module_view.php ============================================================================== --- vtigercrm/branches/5.0.3/user_privileges/default_module_view.php (original) +++ vtigercrm/branches/5.0.3/user_privileges/default_module_view.php Tue Dec 5 23:40:27 2006 @@ -1,14 +1,14 @@ - + +?> From vtigercrm-commits at vtiger.fosslabs.com Wed Dec 6 05:56:39 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Wed, 06 Dec 2006 13:56:39 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9942 - /vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php Message-ID: <20061206135640.13B50789977@vtiger.fosslabs.com> Author: richie Date: Wed Dec 6 06:56:35 2006 New Revision: 9942 Log: activity type added in reports Modified: vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php Modified: vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php (original) +++ vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php Wed Dec 6 06:56:35 2006 @@ -333,7 +333,11 @@ } $advorsqls = implode(" or ",$advorsql); $fieldvalue = " (".$advorsqls.") "; - }else + }elseif($selectedfields[1] == 'status') + { + $fieldvalue = "(case when (vtiger_activity.status not like '') then vtiger_activity.status else vtiger_activity.eventstatus end)".$this->getAdvComparator($comparator,trim($value),$datatype); + } + else { $fieldvalue = $selectedfields[0].".".$selectedfields[1].$this->getAdvComparator($comparator,trim($value),$datatype); } From vtigercrm-commits at vtiger.fosslabs.com Wed Dec 6 21:52:56 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Thu, 07 Dec 2006 05:52:56 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9943 - in /vtigercrm/branches/5.0.3: include/utils/CommonUtils.php include/utils/ListViewUtils.php modules/CustomView/CustomView.php modules/Reports/ReportRun.php modules/Reports/Reports.php Message-ID: <20061207055256.0C051788C9D@vtiger.fosslabs.com> Author: richie Date: Wed Dec 6 22:52:47 2006 New Revision: 9943 Log: modifed customview column headers for activities Modified: vtigercrm/branches/5.0.3/include/utils/CommonUtils.php vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php vtigercrm/branches/5.0.3/modules/CustomView/CustomView.php vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php vtigercrm/branches/5.0.3/modules/Reports/Reports.php Modified: vtigercrm/branches/5.0.3/include/utils/CommonUtils.php ============================================================================== --- vtigercrm/branches/5.0.3/include/utils/CommonUtils.php (original) +++ vtigercrm/branches/5.0.3/include/utils/CommonUtils.php Wed Dec 6 22:52:47 2006 @@ -329,6 +329,27 @@ return $tabid; } +/** + * Function to get the CustomViewName + * Takes the input as $cvid - customviewid + * returns the cvname string fromat + */ + +function getCVname($cvid) +{ + global $log; + $log->debug("Entering getCVname method ..."); + + global $adb; + $sql = "select viewname from vtiger_customview where cvid=".$cvid; + $result = $adb->query($sql); + $cvname = $adb->query_result($result,0,"viewname"); + + $log->debug("Exiting getCVname method ..."); + return $cvname; + +} + /** @@ -2053,7 +2074,7 @@ } function getUserslist() { - global $log; + global $log,$current_user; $log->debug("Entering getUserslist() method ..."); global $adb; $result=$adb->query("select * from vtiger_users"); @@ -2062,7 +2083,7 @@ $useridlist[$i]=$adb->query_result($result,$i,'id'); $usernamelist[$useridlist[$i]]=$adb->query_result($result,$i,'user_name'); } - $change_owner = get_select_options_with_id($usernamelist,'admin'); + $change_owner = get_select_options_with_id($usernamelist,$current_user->user_name); $log->debug("Exiting getUserslist method ..."); return $change_owner; } Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php ============================================================================== --- vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php (original) +++ vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Wed Dec 6 22:52:47 2006 @@ -984,8 +984,11 @@ global $log; $log->debug("Entering getValue(".$field_result.",". $list_result.",".$fieldname.",".$focus.",".$module.",".$entity_id.",".$list_result_count.",".$mode.",".$popuptype.",".$returnset.",".$viewid.") method ..."); global $adb,$current_user; + + $viewname = getCVname($viewid); require('user_privileges/user_privileges_'.$current_user->id.'.php'); $tabname = getParentTab(); + $tabid = getTabid($module); $uicolarr=$field_result[$fieldname]; foreach($uicolarr as $key=>$value) { @@ -1020,6 +1023,12 @@ else { $value = $temp_val; + } + //Added to get both start date & time + if(($tabid == 9 || $tabid == 16) && $uitype == 6 && $viewname != 'All') + { + $timestart = $adb->query_result($list_result,$list_result_count,'time_start'); + $value = $value .'   '.$timestart; } } @@ -2542,6 +2551,7 @@ //code added by raju ends $log->debug("Exiting getRelatedTo method ..."); return $parent_value; + } Modified: vtigercrm/branches/5.0.3/modules/CustomView/CustomView.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/CustomView/CustomView.php (original) +++ vtigercrm/branches/5.0.3/modules/CustomView/CustomView.php Wed Dec 6 22:52:47 2006 @@ -184,6 +184,8 @@ { global $adb; $tabid = getTabid($module); + if($tabid == 9) + $tabid ="9,16"; global $current_user; require('user_privileges/user_privileges_'.$current_user->id.'.php'); if($tabid == 4 || $tabid ==7) @@ -197,7 +199,7 @@ if($is_admin == true || $profileGlobalPermission[1] == 0 || $profileGlobalPermission[2] == 0) { $sql = "select * from vtiger_field "; - $sql.= " where vtiger_field.tabid=".$tabid." and vtiger_field.block in (".$block.") and"; + $sql.= " where vtiger_field.tabid in (".$tabid.") and vtiger_field.block in (".$block.") and"; $sql.= $display_type; $sql.= " order by sequence"; } @@ -206,13 +208,12 @@ $profileList = getCurrentUserProfileList(); $sql = "select * from vtiger_field inner join vtiger_profile2field on vtiger_profile2field.fieldid=vtiger_field.fieldid inner join vtiger_def_org_field on vtiger_def_org_field.fieldid=vtiger_field.fieldid "; - $sql.= " where vtiger_field.tabid=".$tabid." and vtiger_field.block in (".$block.") and"; + $sql.= " where vtiger_field.tabid in (".$tabid.") and vtiger_field.block in (".$block.") and"; $sql.= "$display_type and vtiger_profile2field.visible=0"; - $sql.= " and vtiger_def_org_field.visible=0 and vtiger_profile2field.profileid in ".$profileList." order by sequence"; + $sql.= " and vtiger_def_org_field.visible=0 and vtiger_profile2field.profileid in ".$profileList." order by sequence group by columnname"; } - - - + if($tabid == '9,16') + $tabid ="9"; $result = $adb->query($sql); $noofrows = $adb->num_rows($result); //Added on 14-10-2005 -- added ticket id in list @@ -287,6 +288,7 @@ foreach($this->module_list[$module] as $key=>$value) { $columnlist = $this->getColumnsListbyBlock($module,$value); + if(isset($columnlist)) { $ret_module_list[$module][$key] = $columnlist; @@ -1429,6 +1431,7 @@ { if($viewid != "" && $listquery != "") { + $listviewquery = substr($listquery, strpos($listquery,'FROM'),strlen($listquery)); if($module == "Calendar" || $module == "Emails") { @@ -1539,8 +1542,14 @@ global $current_language; $current_mod_strings = return_specified_module_language($current_language, $module); $block_info = Array(); - $Sql = "select distinct block,vtiger_field.tabid,name,blocklabel from vtiger_field inner join vtiger_blocks on vtiger_blocks.blockid=vtiger_field.block inner join vtiger_tab on vtiger_tab.tabid=vtiger_field.tabid where displaytype != 3 and vtiger_field.block not in(40,6,75,35,30,54,60,66,72) and vtiger_tab.name='$module' order by block"; + if($module == "Calendar") + $module = "Calendar','Events"; + + $Sql = "select distinct block,vtiger_field.tabid,name,blocklabel from vtiger_field inner join vtiger_blocks on vtiger_blocks.blockid=vtiger_field.block inner join vtiger_tab on vtiger_tab.tabid=vtiger_field.tabid where displaytype != 3 and vtiger_field.block not in(40,6,75,35,30,54,60,66,72) and vtiger_tab.name in ('".$module."') order by block"; $result = $adb->query($Sql); + if($module == "Calendar','Events") + $module = "Calendar"; + while($block_result = $adb->fetch_array($result)) { $block_label = $block_result['blocklabel']; Modified: vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php (original) +++ vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php Wed Dec 6 22:52:47 2006 @@ -1081,6 +1081,29 @@ } if($module == "Calendar") { + //Added Leads,Accounts,Potentials as secondarymodule for Calendar + + if($secmodule == "Leads") + { + $query = "left join vtiger_leaddetails on vtiger_leaddetails.leadid = vtiger_seactivityrel.crmid + left join vtiger_crmentity as vtiger_crmentityLeads on vtiger_crmentityLeads.crmid = vtiger_leaddetails.leadid + left join vtiger_leadaddress on vtiger_leaddetails.leadid = vtiger_leadaddress.leadaddressid + left join vtiger_leadsubdetails on vtiger_leadsubdetails.leadsubscriptionid = vtiger_leaddetails.leadid + left join vtiger_leadscf on vtiger_leadscf.leadid = vtiger_leaddetails.leadid + left join vtiger_users as vtiger_usersLeads on vtiger_usersLeads.id = vtiger_crmentityLeads.smownerid "; + + } + if($secmodule == "Accounts") + { + $query = "left join vtiger_account on vtiger_account.accountid = vtiger_seactivityrel.crmid + left join vtiger_crmentity as vtiger_crmentityAccounts on vtiger_crmentityAccounts.crmid=vtiger_account.accountid + left join vtiger_accountbillads on vtiger_account.accountid=vtiger_accountbillads.accountaddressid + left join vtiger_accountshipads on vtiger_account.accountid=vtiger_accountshipads.accountaddressid + left join vtiger_accountscf on vtiger_account.accountid = vtiger_accountscf.accountid + left join vtiger_account as vtiger_accountAccounts on vtiger_accountAccounts.accountid = vtiger_account.parentid + left join vtiger_users as vtiger_usersAccounts on vtiger_usersAccounts.id = vtiger_crmentityAccounts.smownerid "; + + } if($secmodule == "Contacts") { $query = "left join vtiger_contactdetails on vtiger_contactdetails.contactid = vtiger_cntactivityrel.contactid @@ -1093,6 +1116,14 @@ left join vtiger_contactscf on vtiger_contactdetails.contactid = vtiger_contactscf.contactid left join vtiger_users as vtiger_usersContacts on vtiger_usersContacts.id = vtiger_crmentityContacts.smownerid "; } + if($secmodule == "Potentials") + { + $query = "left join vtiger_potential on vtiger_potential.potentialid = vtiger_seactivityrel.crmid + left join vtiger_crmentity as vtiger_crmentityPotentials on vtiger_crmentityPotentials.crmid=vtiger_potential.potentialid + left join vtiger_potentialscf on vtiger_potentialscf.potentialid = vtiger_potential.potentialid + left join vtiger_users as vtiger_usersPotentials on vtiger_usersPotentials.id = vtiger_crmentityPotentials.smownerid "; + + } } if($module == 'Campaigns') { Modified: vtigercrm/branches/5.0.3/modules/Reports/Reports.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/Reports/Reports.php (original) +++ vtigercrm/branches/5.0.3/modules/Reports/Reports.php Wed Dec 6 22:52:47 2006 @@ -41,7 +41,7 @@ 'Accounts'=>Array('Potentials','Contacts','Products','Quotes','Invoice'), 'Contacts'=>Array('Accounts','Potentials','Quotes','PurchaseOrder'), 'Potentials'=>Array('Accounts','Contacts','Quotes'), - 'Calendar'=>Array('Contacts'), + 'Calendar'=>Array('Leads','Accounts','Contacts','Potentials'), 'Products'=>Array('Accounts','Contacts'), 'HelpDesk'=>Array('Products'), 'Quotes'=>Array('Accounts','Contacts','Potentials'), From vtigercrm-commits at vtiger.fosslabs.com Thu Dec 7 06:22:50 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Thu, 07 Dec 2006 14:22:50 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9944 - in /vtigercrm/branches/5.0.3/modules: Calendar/language/en_us.lang.php CustomView/EditView.php Message-ID: <20061207142250.08618789A61@vtiger.fosslabs.com> Author: richie Date: Thu Dec 7 07:22:45 2006 New Revision: 9944 Log: renamed task/event information in customview column header to calendar information Modified: vtigercrm/branches/5.0.3/modules/Calendar/language/en_us.lang.php vtigercrm/branches/5.0.3/modules/CustomView/EditView.php Modified: vtigercrm/branches/5.0.3/modules/Calendar/language/en_us.lang.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/Calendar/language/en_us.lang.php (original) +++ vtigercrm/branches/5.0.3/modules/Calendar/language/en_us.lang.php Thu Dec 7 07:22:45 2006 @@ -263,6 +263,7 @@ 'LBL_NEW_FORM_TITLE'=>'New Activity', 'LBL_TASK_INFORMATION'=>'Task Information', 'LBL_EVENT_INFORMATION'=>'Event Information', +'LBL_CALENDAR_INFORMATION'=>'Calendar Information', 'LBL_NAME'=>'Subject:', 'LBL_ACTIVITY_STRING'=>'There is an activity', Modified: vtigercrm/branches/5.0.3/modules/CustomView/EditView.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/CustomView/EditView.php (original) +++ vtigercrm/branches/5.0.3/modules/CustomView/EditView.php Thu Dec 7 07:22:45 2006 @@ -54,7 +54,7 @@ $log->info('CustomView :: Successfully got StandardFilter for the module'.$cv_module); $stdfiltercolhtml = getStdFilterHTML($cv_module); $stdfilterjs = $oCustomView->getCriteriaJS(); - $smarty->assign("MOD",$mod_strings); + //step4 $advfilterhtml = getAdvCriteriaHTML(); for($i=1;$i<10;$i++) @@ -72,7 +72,7 @@ $smarty->assign("STDFILTERCRITERIA",$stdfilterhtml); $smarty->assign("STDFILTER_JAVASCRIPT",$stdfilterjs); - $smarty->assign("MANDATORYCHECK",implode(",",$oCustomView->mandatoryvalues)); + $smarty->assign("MANDATORYCHECK",implode(",",array_unique($oCustomView->mandatoryvalues))); $smarty->assign("SHOWVALUES",implode(",",$oCustomView->showvalues)); } else @@ -82,6 +82,7 @@ $customviewdtls = $oCustomView->getCustomViewByCvid($recordid); $log->info('CustomView :: Successfully got ViewDetails for the Viewid'.$recordid); $modulecollist = $oCustomView->getModuleColumnsList($cv_module); + $selectedcolumnslist = $oCustomView->getColumnsListByCvid($recordid); $log->info('CustomView :: Successfully got ColumnsList for the Viewid'.$recordid); @@ -128,7 +129,7 @@ $smarty->assign("STDFILTERCRITERIA",$stdfilterhtml); $smarty->assign("STDFILTER_JAVASCRIPT",$stdfilterjs); - $smarty->assign("MANDATORYCHECK",implode(",",$oCustomView->mandatoryvalues)); + $smarty->assign("MANDATORYCHECK",implode(",",array_unique($oCustomView->mandatoryvalues))); $smarty->assign("SHOWVALUES",implode(",",$oCustomView->showvalues)); $cactionhtml = ""; @@ -216,8 +217,9 @@ global $oCustomView; global $app_list_strings; $advfilter = array(); - $mod_strings = return_module_language($current_language,$module); - + $mod_strings = return_specified_module_language($current_language,$module); + + $check_dup = Array(); foreach($oCustomView->module_list[$module] as $key=>$value) { $advfilter = array(); @@ -226,37 +228,67 @@ { foreach($columnslist[$module][$key] as $field=>$fieldlabel) { - if(isset($mod_strings[$fieldlabel])) - { - if($selected == $field) + if(!in_array($fieldlabel,$check_dup)) + { + if(isset($mod_strings[$fieldlabel])) { - $advfilter_option['value'] = $field; - $advfilter_option['text'] = $mod_strings[$fieldlabel]; - $advfilter_option['selected'] = "selected"; + if($selected == $field) + { + $advfilter_option['value'] = $field; + $advfilter_option['text'] = $mod_strings[$fieldlabel]; + $advfilter_option['selected'] = "selected"; + }else + { + $advfilter_option['value'] = $field; + $advfilter_option['text'] = $mod_strings[$fieldlabel]; + $advfilter_option['selected'] = ""; + } }else { - $advfilter_option['value'] = $field; - $advfilter_option['text'] = $mod_strings[$fieldlabel]; - $advfilter_option['selected'] = ""; + if($selected == $field) + { + $advfilter_option['value'] = $field; + $advfilter_option['text'] = $fieldlabel; + $advfilter_option['selected'] = "selected"; + }else + { + $advfilter_option['value'] = $field; + $advfilter_option['text'] = $fieldlabel; + $advfilter_option['selected'] = ""; + } } - }else - { - if($selected == $field) - { - $advfilter_option['value'] = $field; - $advfilter_option['text'] = $fieldlabel; - $advfilter_option['selected'] = "selected"; - }else - { - $advfilter_option['value'] = $field; - $advfilter_option['text'] = $fieldlabel; - $advfilter_option['selected'] = ""; - } + $advfilter[] = $advfilter_option; + $check_dup [] = $fieldlabel; } - $advfilter[] = $advfilter_option; } $advfilter_out[$label]= $advfilter; } + } + + $finalfield = Array(); + foreach($advfilter_out as $header=>$value) + { + if($header == $mod_strings['LBL_TASK_INFORMATION']) + { + $newLabel = $mod_strings['LBL_CALENDAR_INFORMATION']; + $finalfield[$newLabel] = $advfilter_out[$header]; + + } + elseif($header == $mod_strings['LBL_EVENT_INFORMATION']) + { + $index = count($finalfield[$newLabel]); + foreach($value as $key=>$result) + { + $finalfield[$newLabel][$index]=$result; + $index++; + } + } + else + { + $finalfield = $advfilter_out; + } + + $advfilter_out=$finalfield; } return $advfilter_out; } From vtigercrm-commits at vtiger.fosslabs.com Thu Dec 7 06:46:10 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Thu, 07 Dec 2006 14:46:10 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9945 - /vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php Message-ID: <20061207144610.D4B0F789A7C@vtiger.fosslabs.com> Author: richie Date: Thu Dec 7 07:46:07 2006 New Revision: 9945 Log: Start Date and Time added in report columns Modified: vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php Modified: vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php (original) +++ vtigercrm/branches/5.0.3/modules/Reports/ReportRun.php Thu Dec 7 07:46:07 2006 @@ -97,6 +97,10 @@ if($selectedfields[0] == 'vtiger_activity' && $selectedfields[1] == 'status') { $columnslist[$fieldcolname] = " case when (vtiger_activity.status not like '') then vtiger_activity.status else vtiger_activity.eventstatus end as Calendar_Status"; + } + elseif($selectedfields[0] == 'vtiger_activity' && $selectedfields[1] == 'date_start') + { + $columnslist[$fieldcolname] = "concat(vtiger_activity.date_start,' ',vtiger_activity.time_start) as Calendar_Start_Date_and_Time"; } else { From vtigercrm-commits at vtiger.fosslabs.com Thu Dec 7 07:04:34 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Thu, 07 Dec 2006 15:04:34 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9946 - in /vtigercrm/branches/5.0.3: include/utils/DetailViewUtils.php include/utils/ListViewUtils.php include/utils/UserInfoUtil.php modules/Settings/language/en_us.lang.php Message-ID: <20061207150434.6F687789A7C@vtiger.fosslabs.com> Author: richie Date: Thu Dec 7 08:04:25 2006 New Revision: 9946 Log: Roles moved to settings- issues fixed Modified: vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php vtigercrm/branches/5.0.3/include/utils/UserInfoUtil.php vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php Modified: vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php ============================================================================== --- vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php (original) +++ vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php Thu Dec 7 08:04:25 2006 @@ -931,7 +931,7 @@ { $label_fld[] =$mod_strings[$fieldlabel]; if(is_admin($current_user)) - $label_fld[] = ''.getRoleName($col_fields[$fieldname]).''; + $label_fld[] = ''.getRoleName($col_fields[$fieldname]).''; else $label_fld[] = getRoleName($col_fields[$fieldname]); }elseif($uitype == 85) //Added for Skype by Minnie Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php ============================================================================== --- vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php (original) +++ vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Thu Dec 7 08:04:25 2006 @@ -1299,7 +1299,7 @@ } elseif($uitype == 98) { - $value = ''.getRoleName($temp_val).''; + $value = ''.getRoleName($temp_val).''; } else { Modified: vtigercrm/branches/5.0.3/include/utils/UserInfoUtil.php ============================================================================== --- vtigercrm/branches/5.0.3/include/utils/UserInfoUtil.php (original) +++ vtigercrm/branches/5.0.3/include/utils/UserInfoUtil.php Thu Dec 7 08:04:25 2006 @@ -3794,12 +3794,12 @@ elseif($entityType == 'roles') { $roleName=getRoleName($entityid); - $display_out = "Role::".$roleName. ""; + $display_out = "Role::".$roleName. ""; } elseif($entityType == 'rs') { $roleName=getRoleName($entityid); - $display_out = "RoleAndSubordinate::".$roleName. ""; + $display_out = "RoleAndSubordinate::".$roleName. ""; } $log->debug("Exiting getEntityDisplayLink method ..."); return $display_out; Modified: vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php (original) +++ vtigercrm/branches/5.0.3/modules/Settings/language/en_us.lang.php Thu Dec 7 08:04:25 2006 @@ -693,6 +693,8 @@ 'LBL_DELETE_ROLE'=>'Delete Role', 'LBL_ROLE_TO_BE_DELETED'=>'Role to be Deleted', 'LBL_TRANSFER_USER_ROLE'=>'Transfer Users to Role', +'LBL_ASSOCIATED_PROFILES'=>'Associated Profiles :', +'LBL_ASSOCIATED_USERS'=>'Associated Users :', ); From vtigercrm-commits at vtiger.fosslabs.com Thu Dec 7 20:59:35 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Fri, 08 Dec 2006 04:59:35 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9947 - /vtigercrm/branches/5.0.3/modules/uploads/upload.php Message-ID: <20061208045935.CD6D5788CB2@vtiger.fosslabs.com> Author: richie Date: Thu Dec 7 21:59:29 2006 New Revision: 9947 Log: * Modified the hardcoded file size to configurable from config.inc.php file, Fixes #2714 Modified: vtigercrm/branches/5.0.3/modules/uploads/upload.php Modified: vtigercrm/branches/5.0.3/modules/uploads/upload.php ============================================================================== --- vtigercrm/branches/5.0.3/modules/uploads/upload.php (original) +++ vtigercrm/branches/5.0.3/modules/uploads/upload.php Thu Dec 7 21:59:29 2006 @@ -25,7 +25,7 @@ ?> - + From vtigercrm-commits at vtiger.fosslabs.com Thu Dec 7 22:56:16 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Fri, 08 Dec 2006 06:56:16 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9948 - in /vtigercrm/branches/4.2: install/5createTables.inc.php modules/Users/Authenticate.php schema/DatabaseSchema.xml update.php updates/ updates/vtiger/ updates/vtiger/9816.php vtigerversion.php Message-ID: <20061208065616.8AFC6789408@vtiger.fosslabs.com> Author: allanbush Date: Thu Dec 7 23:56:10 2006 New Revision: 9948 Log: Added SVN revision controlled incremental database update system. Refs #2720. Added: vtigercrm/branches/4.2/update.php vtigercrm/branches/4.2/updates/ vtigercrm/branches/4.2/updates/vtiger/ vtigercrm/branches/4.2/updates/vtiger/9816.php Modified: vtigercrm/branches/4.2/install/5createTables.inc.php vtigercrm/branches/4.2/modules/Users/Authenticate.php vtigercrm/branches/4.2/schema/DatabaseSchema.xml vtigercrm/branches/4.2/vtigerversion.php Modified: vtigercrm/branches/4.2/install/5createTables.inc.php ============================================================================== --- vtigercrm/branches/4.2/install/5createTables.inc.php (original) +++ vtigercrm/branches/4.2/install/5createTables.inc.php Thu Dec 7 23:56:10 2006 @@ -285,6 +285,14 @@ } eecho ("Done."); +// insert database version control +include 'vtigerversion.php'; +foreach($svn_revision as $project=>$version) { + $sql = "INSERT INTO vtigerversion (project, revision) + VALUES (".$db->quote($project).", ".$version.")"; + $db->query($sql); +} + /* if ($new_tables) create_default_users(); Modified: vtigercrm/branches/4.2/modules/Users/Authenticate.php ============================================================================== --- vtigercrm/branches/4.2/modules/Users/Authenticate.php (original) +++ vtigercrm/branches/4.2/modules/Users/Authenticate.php Thu Dec 7 23:56:10 2006 @@ -33,6 +33,8 @@ // Add in defensive code here. $focus->user_name = to_html($_REQUEST['user_name']); $user_password = $_REQUEST['user_password']; + +include 'update.php'; $focus->load_user($user_password); Modified: vtigercrm/branches/4.2/schema/DatabaseSchema.xml ============================================================================== --- vtigercrm/branches/4.2/schema/DatabaseSchema.xml (original) +++ vtigercrm/branches/4.2/schema/DatabaseSchema.xml Thu Dec 7 23:56:10 2006 @@ -3813,4 +3813,13 @@ Type=InnoDB + + + + + + + +
+ Modified: vtigercrm/branches/4.2/vtigerversion.php ============================================================================== --- vtigercrm/branches/4.2/vtigerversion.php (original) +++ vtigercrm/branches/4.2/vtigerversion.php Thu Dec 7 23:56:10 2006 @@ -12,5 +12,6 @@ $patch_version = ''; $modified_database = ''; $vtiger_version = '4.2.4'; +$svn_revision['vtiger'] = 9947; $release_date = '1 June 2006'; ?> From vtigercrm-commits at vtiger.fosslabs.com Thu Dec 7 23:43:38 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Fri, 08 Dec 2006 07:43:38 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9949 - /vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Message-ID: <20061208074338.9BB7C788CB4@vtiger.fosslabs.com> Author: richie Date: Fri Dec 8 00:43:32 2006 New Revision: 9949 Log: problem selecting related to in todo fixed Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php ============================================================================== --- vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php (original) +++ vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Fri Dec 8 00:43:32 2006 @@ -985,7 +985,10 @@ $log->debug("Entering getValue(".$field_result.",". $list_result.",".$fieldname.",".$focus.",".$module.",".$entity_id.",".$list_result_count.",".$mode.",".$popuptype.",".$returnset.",".$viewid.") method ..."); global $adb,$current_user; - $viewname = getCVname($viewid); + if($viewid != '') + { + $viewname = getCVname($viewid); + } require('user_privileges/user_privileges_'.$current_user->id.'.php'); $tabname = getParentTab(); $tabid = getTabid($module); From vtigercrm-commits at vtiger.fosslabs.com Fri Dec 8 01:42:29 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Fri, 08 Dec 2006 09:42:29 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9950 - /vtigercrm/branches/5.0.3/Smarty/templates/QuickCreate.tpl Message-ID: <20061208094229.A2841789971@vtiger.fosslabs.com> Author: richie Date: Fri Dec 8 02:42:25 2006 New Revision: 9950 Log: changes made for i18N support Modified: vtigercrm/branches/5.0.3/Smarty/templates/QuickCreate.tpl Modified: vtigercrm/branches/5.0.3/Smarty/templates/QuickCreate.tpl ============================================================================== --- vtigercrm/branches/5.0.3/Smarty/templates/QuickCreate.tpl (original) +++ vtigercrm/branches/5.0.3/Smarty/templates/QuickCreate.tpl Fri Dec 8 02:42:25 2006 @@ -69,7 +69,11 @@ From vtigercrm-commits at vtiger.fosslabs.com Fri Dec 8 11:19:13 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Fri, 08 Dec 2006 19:19:13 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9951 - /vtigercrm/branches/5.0.3/include/utils/CommonUtils.php Message-ID: <20061208191914.2927B788AA0@vtiger.fosslabs.com> Author: richie Date: Fri Dec 8 12:19:09 2006 New Revision: 9951 Log: Security check for changowner added Modified: vtigercrm/branches/5.0.3/include/utils/CommonUtils.php Modified: vtigercrm/branches/5.0.3/include/utils/CommonUtils.php ============================================================================== --- vtigercrm/branches/5.0.3/include/utils/CommonUtils.php (original) +++ vtigercrm/branches/5.0.3/include/utils/CommonUtils.php Fri Dec 8 12:19:09 2006 @@ -2074,16 +2074,28 @@ } function getUserslist() { - global $log,$current_user; + global $log,$current_user,$module,$adb,$assigned_user_id; $log->debug("Entering getUserslist() method ..."); - global $adb; - $result=$adb->query("select * from vtiger_users"); - for($i=0;$i<$adb->num_rows($result);$i++) - { - $useridlist[$i]=$adb->query_result($result,$i,'id'); - $usernamelist[$useridlist[$i]]=$adb->query_result($result,$i,'user_name'); - } - $change_owner = get_select_options_with_id($usernamelist,$current_user->user_name); + require('user_privileges/user_privileges_'.$current_user->id.'.php'); + require('user_privileges/sharing_privileges_'.$current_user->id.'.php'); + + if($is_admin==false && $profileGlobalPermission[2] == 1 && ($defaultOrgSharingPermission[getTabid($module)] == 3 or $defaultOrgSharingPermission[getTabid($module)] == 0)) + { + $users_combo = get_select_options_array(get_user_array(FALSE, "Active", $current_user->id,'private'), $current_user->id); + } + else + { + $users_combo = get_select_options_array(get_user_array(FALSE, "Active", $current_user->id),$current_user->id); + } + foreach($users_combo as $userid=>$value) + { + + foreach($value as $username=>$selected) + { + $change_owner .= ""; + } + } + $log->debug("Exiting getUserslist method ..."); return $change_owner; } @@ -2091,20 +2103,40 @@ function getGroupslist() { - global $log; + global $log,$adb,$module,$current_user; $log->debug("Entering getGroupslist() method ..."); - global $adb; - $result=$adb->query("select * from vtiger_groups"); - - for($i=0;$i<$adb->num_rows($result);$i++) - { - $groupidlist[$i]=$adb->query_result($result,$i,'groupid'); - $groupnamelist[$groupidlist[$i]]=$adb->query_result($result,$i,'groupname'); - - } - $change_groups_owner = get_select_options_with_id($groupnamelist,''); + require('user_privileges/user_privileges_'.$current_user->id.'.php'); + require('user_privileges/sharing_privileges_'.$current_user->id.'.php'); + if($is_admin==false && $profileGlobalPermission[2] == 1 && ($defaultOrgSharingPermission[getTabid($module)] == 3 or $defaultOrgSharingPermission[getTabid($module)] == 0)) + { + $result=get_current_user_access_groups($module); + } + else + { + $result = get_group_options(); + } + $groupArray = $adb->fetch_array($result); + + do{ + $groupname=$groupArray["groupname"]; + $group_id=$groupArray["groupid"]; + $selected = ''; + if($groupname == $selected_groupname[0]) + { + $selected = "selected"; + } + if($groupname != '') + $group_option[$group_id] = array($groupname=>$selected); + }while($groupArray = $adb->fetch_array($result)); + + foreach($group_option as $groupid=>$value) + { + foreach($value as $groupname=>$selected) + { + $change_groups_owner .= ""; + } + } $log->debug("Exiting getGroupslist method ..."); - return $change_groups_owner; } From vtigercrm-commits at vtiger.fosslabs.com Mon Dec 11 01:39:06 2006 From: vtigercrm-commits at vtiger.fosslabs.com (vtigercrm-commits@vtiger.fosslabs.com) Date: Mon, 11 Dec 2006 09:39:06 -0000 Subject: [Vtigercrm-commits] [vtiger-commits] r9952 - in /vtigercrm/branches/5.0.3: Smarty/templates/ Smarty/templates/Inventory/ themes/alphagrey/ themes/bluelagoon/ themes/woodspice/ Message-ID: <20061211093906.677A1788A1B@vtiger.fosslabs.com> Author: richie Date: Mon Dec 11 02:38:54 2006 New Revision: 9952 Log: Changes made to wrap the contents in the description field Modified: vtigercrm/branches/5.0.3/Smarty/templates/DetailView.tpl vtigercrm/branches/5.0.3/Smarty/templates/DetailViewFields.tpl vtigercrm/branches/5.0.3/Smarty/templates/DetailViewUI.tpl vtigercrm/branches/5.0.3/Smarty/templates/Inventory/InventoryDetailView.tpl vtigercrm/branches/5.0.3/themes/alphagrey/style.css vtigercrm/branches/5.0.3/themes/bluelagoon/style.css vtigercrm/branches/5.0.3/themes/woodspice/style.css Modified: vtigercrm/branches/5.0.3/Smarty/templates/DetailView.tpl ============================================================================== --- vtigercrm/branches/5.0.3/Smarty/templates/DetailView.tpl (original) +++ vtigercrm/branches/5.0.3/Smarty/templates/DetailView.tpl Mon Dec 11 02:38:54 2006 @@ -288,13 +288,12 @@ {else} {$label} {/if} -{if $EDIT_PERMISSION eq 'yes'} {include file="DetailViewUI.tpl"} -{else} {include file="DetailViewFields.tpl"} -{/if} - {else} -   -   - {/if} + {if $EDIT_PERMISSION eq 'yes'} + {include file="DetailViewUI.tpl"} + {else} + {include file="DetailViewFields.tpl"} + {/if} + {/if} {/foreach} {/foreach} Modified: vtigercrm/branches/5.0.3/Smarty/templates/DetailViewFields.tpl ============================================================================== --- vtigercrm/branches/5.0.3/Smarty/templates/DetailViewFields.tpl (original) +++ vtigercrm/branches/5.0.3/Smarty/templates/DetailViewFields.tpl Mon Dec 11 02:38:54 2006 @@ -32,7 +32,7 @@  {$keyval} {elseif $keyid eq '19' || $keyid eq '20'} -  {$keyval} +  {$keyval} {elseif $keyid eq '21' || $keyid eq '24' || $keyid eq '22'}  {$keyval} Modified: vtigercrm/branches/5.0.3/Smarty/templates/DetailViewUI.tpl ============================================================================== --- vtigercrm/branches/5.0.3/Smarty/templates/DetailViewUI.tpl (original) +++ vtigercrm/branches/5.0.3/Smarty/templates/DetailViewUI.tpl Mon Dec 11 02:38:54 2006 @@ -133,7 +133,7 @@ {/if} -   +   {$keyval}