CURRENT_TIMESTAMP is also valid for DATETIME.
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user