mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
allow 0 as empty-value for date and date-time widgets, as that is used a lot eg. in InfoLog
This commit is contained in:
parent
12fc2ba8d0
commit
c8603676ef
@ -104,7 +104,9 @@ var et2_date = et2_inputWidget.extend(
|
|||||||
|
|
||||||
set_value: function(_value) {
|
set_value: function(_value) {
|
||||||
var old_value = this.getValue();
|
var old_value = this.getValue();
|
||||||
if(_value === null || _value === "" || _value === undefined)
|
if(_value === null || _value === "" || _value === undefined ||
|
||||||
|
// allow 0 as empty-value for date and date-time widgets, as that is used a lot eg. in InfoLog
|
||||||
|
_value == 0 && (this._type == 'date-time' || this._type == 'date'))
|
||||||
{
|
{
|
||||||
_value = null;
|
_value = null;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user