* fix a bug.
This commit is contained in:
@@ -619,7 +619,7 @@ class commonModel extends model
|
||||
}
|
||||
else
|
||||
{
|
||||
$objects = $this->dbh->query($queryCondition . "OR id=$objectID ORDER BY $orderBy")->fetchAll();
|
||||
$objects = $this->dbh->query($queryCondition . " ORDER BY $orderBy")->fetchAll();
|
||||
}
|
||||
|
||||
$tmpObjectIDs = array();
|
||||
|
||||
Vendored
+4
-1
@@ -13,8 +13,11 @@ $.extend(
|
||||
{
|
||||
$.enableForm(formID);
|
||||
|
||||
/* try parse to json when response is json's string. */
|
||||
try{if(typeof(response) == 'string') response = JSON.parse(response);}catch(e){}
|
||||
|
||||
/* The response is not an object, some error occers, alert it. */
|
||||
if($.type(response) != 'object')
|
||||
if(typeof(response) != 'object')
|
||||
{
|
||||
if(response) return alert(response);
|
||||
return alert('No response.');
|
||||
|
||||
Reference in New Issue
Block a user