commit 2e4bcd5af3b3fe408c6c87f0dcef1945aaf40015
parent 1d96fc4811eba49e2cd3211c0334d134c8f49091
Author: felicitus <felicitus@felicitus.org>
Date: Mon, 20 Aug 2012 13:04:27 +0200
Use the id instead of the name, fixes #244
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/PartKeepr/Part/PartService.php b/src/backend/PartKeepr/Part/PartService.php
@@ -44,7 +44,7 @@ class PartService extends Service implements RestfulService {
}
/**
- * Applies filtering by the storage location name
+ * Applies filtering by the storage location id
*/
if ($this->getParameter("storageLocation") !== null) {
$queryBuilder->andWhere("st.id = :storageLocation");
diff --git a/src/frontend/js/Components/StorageLocation/StorageLocationEditor.js b/src/frontend/js/Components/StorageLocation/StorageLocationEditor.js
@@ -78,7 +78,7 @@ Ext.define('PartKeepr.StorageLocationEditor', {
this.callParent();
},
onStartEdit: function () {
- this.store.getProxy().extraParams.storageLocation = this.record.get("name");
+ this.store.getProxy().extraParams.storageLocation = this.record.get("id");
this.store.load();
}