phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] tts/inc class.uitts.inc.php


From: Dave Hall
Subject: [Phpgroupware-cvs] tts/inc class.uitts.inc.php
Date: Tue, 28 Nov 2006 10:31:08 +0000

CVSROOT:        /cvsroot/phpgroupware
Module name:    tts
Changes by:     Dave Hall <skwashd>     06/11/28 10:31:08

Modified files:
        inc            : class.uitts.inc.php 

Log message:
        fix the date for new tickets

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/tts/inc/class.uitts.inc.php?cvsroot=phpgroupware&r1=1.2&r2=1.3

Patches:
Index: class.uitts.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/tts/inc/class.uitts.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- class.uitts.inc.php 28 Nov 2006 10:09:32 -0000      1.2
+++ class.uitts.inc.php 28 Nov 2006 10:31:08 -0000      1.3
@@ -5,7 +5,7 @@
        * @copyright Copyright (C) 2000-2006 Free Software Foundation, Inc. 
http://www.fsf.org/
        * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
        * @package tts
-       * @version $Id: class.uitts.inc.php,v 1.2 2006/11/28 10:09:32 skwashd 
Exp $
+       * @version $Id: class.uitts.inc.php,v 1.3 2006/11/28 10:31:08 skwashd 
Exp $
        */
        
        class uitts
@@ -371,6 +371,17 @@
                                {
                                        $fields[$key]['value'] = 
$values[$val['id']];
                                } 
+
+                               if ( $val['type'] == 'date' )
+                               {
+                                       if ( !isset($values[$val['id']]) )
+                                       {
+                                               $values[$val['id']] = time();
+                                       }
+
+                                       $ui = createObject('phpgwapi.ui_tools');
+                                       $fields[$key] = $ui->date($val['id'], 
$val['label'], $values[$val['id']]);
+                               }
                        }
                        
                
@@ -401,6 +412,8 @@
                                'type'  => 'break'
                        );
                        
+                       //echo '<pre>' . print_r($fields, true) . '</pre>';
+                       
                        return array('form_elm' => $fields);
                }
 




reply via email to

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