Neal Wilson 11 gadus atpakaļ
vecāks
revīzija
321d3e2177
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4
    4
      config/Windows/newsamplebatch.xml

+ 4
- 4
config/Windows/newsamplebatch.xml Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt