Browse Source

More fixes

Neal Wilson 11 years ago
parent
commit
321d3e2177
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      config/Windows/newsamplebatch.xml

+ 4
- 4
config/Windows/newsamplebatch.xml View File

275
 						attname = attname.substr(1);
275
 						attname = attname.substr(1);
276
 					}
276
 					}
277
 					if(attname[attname.length -1] == '}') {
277
 					if(attname[attname.length -1] == '}') {
278
-						attname = attname.substr(0, attname.length - 2);
278
+						attname = attname.substr(0, attname.length - 1);
279
 					}
279
 					}
280
 					if(attname.length == 0) {
280
 					if(attname.length == 0) {
281
 						break;
281
 						break;
282
 					}
282
 					}
283
 					query.prepare("SELECT id FROM item_attributes WHERE name = :name");
283
 					query.prepare("SELECT id FROM item_attributes WHERE name = :name");
284
-					query.bind(":name", attnames[i]);
284
+					query.bind(":name", attname);
285
 					query.exec();
285
 					query.exec();
286
 					if(query.next())
286
 					if(query.next())
287
 					{
287
 					{
290
 					else
290
 					else
291
 					{
291
 					{
292
 						query.prepare("INSERT INTO item_attributes VALUES(DEFAULT, :name) RETURNING id");
292
 						query.prepare("INSERT INTO item_attributes VALUES(DEFAULT, :name) RETURNING id");
293
-						query.bind(":name", attnames[i]);
293
+						query.bind(":name", attname);
294
 						query.exec();
294
 						query.exec();
295
 						query.next();
295
 						query.next();
296
 						attributes.setData(i, 0, query.value(0), 32);
296
 						attributes.setData(i, 0, query.value(0), 32);
317
 				query.bind(":roastedid", Number(roastedId));
317
 				query.bind(":roastedid", Number(roastedId));
318
 				query.bind(":roasted", convertToPounds(parseFloat(roasted.text), GunitBox.currentText));
318
 				query.bind(":roasted", convertToPounds(parseFloat(roasted.text), GunitBox.currentText));
319
 				query.bind(":note", notes.plainText);
319
 				query.bind(":note", notes.plainText);
320
-				query.bind(":machine", Number(selectedRoastedID));
320
+				query.bind(":machine", Number(selectedRoasterID));
321
 				query.bind(":duration", duration.text);
321
 				query.bind(":duration", duration.text);
322
 				query.bind(":files", "{" + fileno + "}");
322
 				query.bind(":files", "{" + fileno + "}");
323
 				query.exec();
323
 				query.exec();

Loading…
Cancel
Save