[Lada-commits] [PATCH] fix: ortserstellung did load verwaltungsstore with only one entry

Wald Commits scm-commit at wald.intevation.org
Tue Feb 7 16:50:20 CET 2017


# HG changeset patch
# User Maximilian Krambach <mkrambach at intevation.de>
# Date 1486482616 -3600
# Node ID d8db43ac9c12b1b3031cc4c4919b4aa21ee81957
# Parent  02252ce0cf1eb96ca1eb5edaa1138b34b476003f
fix: ortserstellung did load verwaltungsstore with only one entry

diff -r 02252ce0cf1e -r d8db43ac9c12 app/controller/form/Ortserstellung.js
--- a/app/controller/form/Ortserstellung.js	Tue Feb 07 16:44:07 2017 +0100
+++ b/app/controller/form/Ortserstellung.js	Tue Feb 07 16:50:16 2017 +0100
@@ -58,10 +58,8 @@
         record.save({
             success: function(newrecord, response) {
                 form.loadRecord(newrecord);
-                me.down('verwaltungseinheit').store.load(
-                        { id:newrecord.get('gemId') });
-                me.down('staat').store.load(
-                        { id : newrecord.get('staat') });
+                me.down('verwaltungseinheit').store.clearFilter();
+                me.down('staat').store.clearFilter();
                 button.setDisabled(true);
                 me.down('button[action=revert]').setDisabled(true);
                 button.hide();


More information about the Lada-commits mailing list