CURRENT_TIMESTAMP is also valid for DATETIME.

This commit is contained in:
Michal Čihař
2010-04-16 09:54:19 +02:00
parent e194beb978
commit 67fd7e2567

View File

@@ -183,14 +183,14 @@ function Validator(urlField, multi_edit,theType){
else if(theType=="datetime"||theType=="timestamp") else if(theType=="datetime"||theType=="timestamp")
{ {
tmstmp=false; tmstmp=false;
if(dt.value=="CURRENT_TIMESTAMP")
{
dt.className="";
return true;
}
if(theType=="timestamp") if(theType=="timestamp")
{ {
tmstmp=true; tmstmp=true;
if(dt.value=="CURRENT_TIMESTAMP")
{
dt.className="";
return true;
}
} }
if(dt.value=="0000-00-00 00:00:00") if(dt.value=="0000-00-00 00:00:00")
return true; return true;