[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7259] rental: Once more - enable emty values for Dat
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [7259] rental: Once more - enable emty values for DateCellEditor |
Date: |
Thu, 05 May 2011 12:02:02 +0000 |
Revision: 7259
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7259
Author: sigurdne
Date: 2011-05-05 12:02:00 +0000 (Thu, 05 May 2011)
Log Message:
-----------
rental: Once more - enable emty values for DateCellEditor
Modified Paths:
--------------
trunk/rental/inc/model/class.contract_price_item.inc.php
trunk/rental/templates/base/common.php
Modified: trunk/rental/inc/model/class.contract_price_item.inc.php
===================================================================
--- trunk/rental/inc/model/class.contract_price_item.inc.php 2011-05-05
09:23:56 UTC (rev 7258)
+++ trunk/rental/inc/model/class.contract_price_item.inc.php 2011-05-05
12:02:00 UTC (rev 7259)
@@ -200,8 +200,8 @@
// happy about empty values if a custom parser
is set, so we use the YUI built
// in "date" parser which requires a format
like: 2009/07/30 to work.
// EHL: Removed 2009-10-27, due to change to
int datatype.
- 'date_start' =>
$this->get_date_start()!=NULL?date($date_format, $this->get_date_start()):'',
- 'date_end' =>
$this->get_date_end()!=NULL?date($date_format, $this->get_date_end()):''
+ 'date_start' =>
$this->get_date_start()!=NULL?date($date_format, $this->get_date_start()):null,
+ 'date_end' =>
$this->get_date_end()!=NULL?date($date_format, $this->get_date_end()):null
);
}
@@ -230,4 +230,4 @@
return $this->is_one_time;
}
- }
\ No newline at end of file
+ }
Modified: trunk/rental/templates/base/common.php
===================================================================
--- trunk/rental/templates/base/common.php 2011-05-05 09:23:56 UTC (rev
7258)
+++ trunk/rental/templates/base/common.php 2011-05-05 12:02:00 UTC (rev
7259)
@@ -41,7 +41,7 @@
var my_date = Math.round(Date.parse(oData) / 1000);
elCell.innerHTML = formatDate('<?php echo
$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'] ?>',
my_date);
} else {
- elCell.innerHTML = '""';
+ elCell.innerHTML = '';
}
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7259] rental: Once more - enable emty values for DateCellEditor,
Sigurd Nes <=