fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [9058] API : custom field


From: Sigurd Nes
Subject: [Fmsystem-commits] [9058] API : custom field
Date: Wed, 28 Mar 2012 13:23:22 +0000

Revision: 9058
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9058
Author:   sigurdne
Date:     2012-03-28 13:23:21 +0000 (Wed, 28 Mar 2012)
Log Message:
-----------
API : custom field

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.custom_fields.inc.php
    trunk/property/inc/class.custom_fields.inc.php

Modified: trunk/phpgwapi/inc/class.custom_fields.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.custom_fields.inc.php      2012-03-28 11:09:03 UTC 
(rev 9057)
+++ trunk/phpgwapi/inc/class.custom_fields.inc.php      2012-03-28 13:23:21 UTC 
(rev 9058)
@@ -107,6 +107,7 @@
                                'C'             => lang('char'),
                                'N'             => lang('Float'),
                                'D'             => lang('Date'),
+                               'DT'    => lang('Datetime'),
                                'T'             => lang('Memo'),
                                'R'             => lang('Muliple radio'),
                                'CH'    => lang('Muliple checkbox'),
@@ -1637,6 +1638,7 @@
                                'C'                     => 'char',
                                'N'                     => 'decimal',
                                'D'                     => 'timestamp',
+                               'DT'            => 'timestamp',
                                'T'                     => 'text',
                                'R'                     => 'int',
                                'CH'            => 'text',

Modified: trunk/property/inc/class.custom_fields.inc.php
===================================================================
--- trunk/property/inc/class.custom_fields.inc.php      2012-03-28 11:09:03 UTC 
(rev 9057)
+++ trunk/property/inc/class.custom_fields.inc.php      2012-03-28 13:23:21 UTC 
(rev 9058)
@@ -86,7 +86,7 @@
                        {
                                $attributes['datatype_text']    = 
$this->translate_datatype($attributes['datatype']);
                                $attributes['help_url']                 = 
$attributes['helpmsg'] ? $GLOBALS['phpgw']->link('/index.php', 
array('menuaction'=> 'manual.uimanual.attrib_help', 'appname'=> $appname, 
'location'=> $location, 'id' => $attributes['id'])): '';
-                               if($attributes['datatype'] == 'D' || 
$attributes['datatype'] == 'date' || $attributes['datatype'] == 'timestamp')
+                               if($attributes['datatype'] == 'D' || 
$attributes['datatype'] == 'DT' || $attributes['datatype'] == 'date' || 
$attributes['datatype'] == 'timestamp')
                                {
                                        if(!$view_only)
                                        {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]