CURRENT_TIMESTAMP is also valid for DATETIME.
This commit is contained in:
parent
e194beb978
commit
67fd7e2567
@ -183,14 +183,14 @@ function Validator(urlField, multi_edit,theType){
|
||||
else if(theType=="datetime"||theType=="timestamp")
|
||||
{
|
||||
tmstmp=false;
|
||||
if(dt.value=="CURRENT_TIMESTAMP")
|
||||
{
|
||||
dt.className="";
|
||||
return true;
|
||||
}
|
||||
if(theType=="timestamp")
|
||||
{
|
||||
tmstmp=true;
|
||||
if(dt.value=="CURRENT_TIMESTAMP")
|
||||
{
|
||||
dt.className="";
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if(dt.value=="0000-00-00 00:00:00")
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user