[Vtigercrm-commits] [vtiger-commits] r9965 - /vtigercrm/branches/5.0.3/modules/Calendar/DetailView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Dec 13 05:45:00 EST 2006
Author: richie
Date: Wed Dec 13 03:44:56 2006
New Revision: 9965
Log:
i18n support for calendar combo
Modified:
vtigercrm/branches/5.0.3/modules/Calendar/DetailView.php
Modified: vtigercrm/branches/5.0.3/modules/Calendar/DetailView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Calendar/DetailView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Calendar/DetailView.php Wed Dec 13 03:44:56 2006
@@ -136,21 +136,30 @@
$data['date_start'] = $stdate;
$data['due_date'] = $enddate;
$data['assigned_user_id'] = $finaldata['assigned_user_id'];
-$data['taskpriority'] = $mod_strings[$finaldata['taskpriority']];
+if($mod_strings[$finaldata['taskpriority']] != '')
+ $data['taskpriority'] = $mod_strings[$finaldata['taskpriority']];
+else
+ $data['taskpriority'] = $finaldata['taskpriority'];
$data['modifiedtime'] = $finaldata['modifiedtime'];
$data['createdtime'] = $finaldata['createdtime'];
$data['parent_name'] = $finaldata['parent_id'];
$data['description'] = $finaldata['description'];
if($activity_mode == 'Task')
{
- $data['taskstatus'] = $mod_strings[$finaldata['taskstatus']];
+ if($mod_strings[$finaldata['taskstatus']] != '')
+ $data['taskstatus'] = $mod_strings[$finaldata['taskstatus']];
+ else
+ $data['taskstatus'] = $finaldata['taskstatus'];
$data['activitytype'] = $activity_mode;
$data['contact_id'] = $finaldata['contact_id'];
}
elseif($activity_mode == 'Events')
{
$data['visibility'] = $finaldata['visibility'];
- $data['eventstatus'] = $mod_strings[$finaldata['eventstatus']];
+ if($mod_strings[$finaldata['taskstatus']] != '')
+ $data['eventstatus'] = $mod_strings[$finaldata['eventstatus']];
+ else
+ $data['eventstatus'] = $finaldata['eventstatus'];
$data['activitytype'] = $finaldata['activitytype'];
$data['location'] = $finaldata['location'];
//Calculating reminder time
More information about the vtigercrm-commits
mailing list