# HG changeset patch # User Torsten Irländer # Date 1383911688 -3600 # Node ID f4185f2d1a7ca10b5f04c6c819f1771513b9d99b # Parent 2375e724752312c930a85a6ae9d664bc47a9025e Only load verwaltungseinheit if there is a selected ort. diff -r 2375e7247523 -r f4185f2d1a7c app/view/orte/CreateForm.js --- a/app/view/orte/CreateForm.js Fri Nov 08 12:47:19 2013 +0100 +++ b/app/view/orte/CreateForm.js Fri Nov 08 12:54:48 2013 +0100 @@ -28,9 +28,11 @@ // would only display the raw value (id) of the // verwaltungseinheit. var verw = Ext.getStore('Verwaltungseinheiten'); - verw.load({ - id: ort.get('gemId') - }); + if (ort) { + verw.load({ + id: ort.get('gemId') + }); + } var form = this.getForm(); if ( ort != undefined ) {