[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: calendar/inc class.bocustom_fields.inc.php, 1.1.
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: calendar/inc class.bocustom_fields.inc.php, 1.1.2.2, 1.1.2.3 |
Date: |
Sat, 09 Aug 2003 18:17:10 -0400 |
Update of /cvsroot/phpgroupware/calendar/inc
In directory subversions:/tmp/cvs-serv27209
Modified Files:
Tag: Version-0_9_16-branch
class.bocustom_fields.inc.php
Log Message:
fix for firsttime use / no custom-fields defined
Index: class.bocustom_fields.inc.php
===================================================================
RCS file:
/cvsroot/phpgroupware/calendar/inc/Attic/class.bocustom_fields.inc.php,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -r1.1.2.2 -r1.1.2.3
*** class.bocustom_fields.inc.php 9 Aug 2003 14:06:29 -0000 1.1.2.2
--- class.bocustom_fields.inc.php 9 Aug 2003 22:17:07 -0000 1.1.2.3
***************
*** 26,33 ****
'enddate' => 'End Date/Time',
'priority' => 'Priority',
- 'owner' => 'Created By',
- 'updated' => 'Updated',
'access' => 'Access',
'participants'=> 'Participants',
'alarm' => 'Alarm',
'recure_type' => 'Repetition'
--- 26,33 ----
'enddate' => 'End Date/Time',
'priority' => 'Priority',
'access' => 'Access',
'participants'=> 'Participants',
+ 'owner' => 'Created By',
+ 'updated' => 'Updated',
'alarm' => 'Alarm',
'recure_type' => 'Repetition'
***************
*** 41,44 ****
--- 41,48 ----
$this->fields = &$this->config->config_data['fields'];
+ if ($first_time = !is_array($this->fields)) {
+ $this->fields = array();
+ }
+
foreach ($this->fields as $field => $data) // this
can be removed after a while
{
***************
*** 67,70 ****
--- 71,78 ----
$this->fields[$field]['length'] =
$data['length'];
$this->fields[$field]['shown'] =
$data['shown'];
+ }
+ if ($first_time)
+ {
+ $this->save();
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: calendar/inc class.bocustom_fields.inc.php, 1.1.2.2, 1.1.2.3,
Ralf Becker <address@hidden> <=