Fixed SQL error in creator update query in Item.save()

This commit is contained in:
Dan Stillman 2006-05-23 13:08:19 +00:00
parent 6c62115669
commit 05d1fba368

View file

@ -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";
}