r28256 - /trunk/timesheet/inc/class.timesheet_ui.inc.php

View: New views
1 Messages — Rating Filter:   Alert me  

r28256 - /trunk/timesheet/inc/class.timesheet_ui.inc.php

by leithoff :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Author: leithoff
Date: Wed Nov  4 14:02:05 2009
New Revision: 28256

URL: http://www.egroupware.org/viewvc/egroupware?rev=28256&view=rev
Log:
handle timesheet viewtype short, when creating entries with save & new

Modified:
    trunk/timesheet/inc/class.timesheet_ui.inc.php

Modified: trunk/timesheet/inc/class.timesheet_ui.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/timesheet/inc/class.timesheet_ui.inc.php?rev=28256&r1=28255&r2=28256&view=diff
==============================================================================
--- trunk/timesheet/inc/class.timesheet_ui.inc.php (original)
+++ trunk/timesheet/inc/class.timesheet_ui.inc.php Wed Nov  4 14:02:05 2009
@@ -107,7 +107,10 @@
  $msg = lang('only Admin can edit this status');
  }
  }
-
+ if ($this->ts_viewtype == 'short')
+ {
+ $content['start_time']=$content['end_time']='00:00';
+ }
  // we only need 2 out of 3 values from start-, end-time or duration (the date in ts_start is always required!)
  if ($content['start_time'] != '00:00') // start-time specified
  {


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
eGroupWare-cvs mailing list
eGroupWare-cvs@...
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs