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;
|
||||
|
||||
if (Scholar.DB.valueQuery(sql2)){
|
||||
sql += 'UPDATE itemCreators SET creatorID='
|
||||
+ creatorID + ', creatorTypeID='
|
||||
+ creator['creatorTypeID'] + ', '
|
||||
sql += 'UPDATE itemCreators SET '
|
||||
+ 'creatorID=' + creatorID +', '
|
||||
+ 'creatorTypeID=' + creator['creatorTypeID'] + ' '
|
||||
+ 'WHERE itemID=' + this.getID()
|
||||
+ ' AND orderIndex=' + orderIndex + ";\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue