phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.30.2.11,1


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.30.2.11,1.30.2.12
Date: Thu, 13 Mar 2003 09:20:17 -0500

Update of /cvsroot/phpgroupware/infolog/inc
In directory subversions:/tmp/cvs-serv18037/infolog/inc

Modified Files:
      Tag: Version-0_9_14-branch
        class.uiinfolog.inc.php 
Log Message:
fixed a few minor bugs:
- private get no longer set in edit on error
- on creating sub's:
  1) startdate get set to today, if parent's one was in the past
  2) enddate get reset (empty), if parent's one was in the past or before the 
new startdate from 1)

Index: class.uiinfolog.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/infolog/inc/class.uiinfolog.inc.php,v
retrieving revision 1.30.2.11
retrieving revision 1.30.2.12
diff -C2 -r1.30.2.11 -r1.30.2.12
*** class.uiinfolog.inc.php     4 Mar 2003 17:10:33 -0000       1.30.2.11
--- class.uiinfolog.inc.php     13 Mar 2003 14:19:17 -0000      1.30.2.12
***************
*** 808,811 ****
--- 808,812 ----
                                        }
                                }
+                               $access = $access == 'private'; // else after 
an error the entry is private
                        }
                        $this->bo->read( $info_id );
***************
*** 831,834 ****
--- 832,844 ----
                                
$this->bo->so->data['info_subject']=lang('Re:').' '.$parent['info_subject'];
                                $this->bo->so->data['info_des'] = '';
+                               
+                               if ($parent['info_startdate'] < $today)
+                               {
+                                       $this->bo->so->data['info_startdate'] = 
$today;
+                               }
+                               if ($parent['info_enddate'] < $today || 
$parent['info_enddate'] < $this->bo->so->data['info_startdate'])
+                               {
+                                       $this->bo->so->data['info_enddate'] = 0;
+                               }
                        }
                        else





reply via email to

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