partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 5a2724f6226f3abd9297e120825ef840a447e3e4
parent 61bbbc7c196e2ca7a3a52d8fa36f302cac9b28dd
Author: felicitus <felicitus@felicitus.org>
Date:   Wed, 28 Dec 2011 11:07:11 +0100

Bugfix for an issue where no parts are displayed after using the part filter panel

Diffstat:
Msrc/frontend/js/Components/Part/PartFilterPanel.js | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/frontend/js/Components/Part/PartFilterPanel.js b/src/frontend/js/Components/Part/PartFilterPanel.js @@ -157,7 +157,12 @@ Ext.define('PartKeepr.PartFilterPanel', { * Get the raw (=text) value. I really wish that ExtJS would handle selected values (from a store) * distinct than entered values. */ - extraParams.storageLocation = this.storageLocationFilter.getRawValue(); + if (this.storageLocationFilter.getRawValue() !== "") { + extraParams.storageLocation = this.storageLocationFilter.getRawValue(); + } else { + delete extraParams.storageLocation; + } + } }); \ No newline at end of file