Fixed SQL error in creator update query in Item.save()
This commit is contained in:
parent
6c62115669
commit
05d1fba368
1 changed files with 3 additions and 3 deletions
|
@ -480,9 +480,9 @@ Scholar.Item.prototype.save = function(){
|
||||||
+ ' AND orderIndex=' + orderIndex;
|
+ ' AND orderIndex=' + orderIndex;
|
||||||
|
|
||||||
if (Scholar.DB.valueQuery(sql2)){
|
if (Scholar.DB.valueQuery(sql2)){
|
||||||
sql += 'UPDATE itemCreators SET creatorID='
|
sql += 'UPDATE itemCreators SET '
|
||||||
+ creatorID + ', creatorTypeID='
|
+ 'creatorID=' + creatorID +', '
|
||||||
+ creator['creatorTypeID'] + ', '
|
+ 'creatorTypeID=' + creator['creatorTypeID'] + ' '
|
||||||
+ 'WHERE itemID=' + this.getID()
|
+ 'WHERE itemID=' + this.getID()
|
||||||
+ ' AND orderIndex=' + orderIndex + ";\n";
|
+ ' AND orderIndex=' + orderIndex + ";\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue