changeset 1367:d2a0cb1e5596

fix validity of oz-Id in Ortserstellung
author Maximilian Krambach <mkrambach@intevation.de>
date Wed, 08 Feb 2017 15:46:58 +0100
parents 993e542796fd
children 75b1b0d7dece
files app/view/form/Ortserstellung.js app/view/widget/OrtsZusatz.js
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/form/Ortserstellung.js	Wed Feb 08 15:36:55 2017 +0100
+++ b/app/view/form/Ortserstellung.js	Wed Feb 08 15:46:58 2017 +0100
@@ -152,7 +152,6 @@
         },{
             xtype: 'ortszusatz',
             labelWidth: 125,
-            maxLength: 7,
             name: 'ozId',
             fieldLabel: i18n.getMsg('orte.ozId')
         }];
--- a/app/view/widget/OrtsZusatz.js	Wed Feb 08 15:36:55 2017 +0100
+++ b/app/view/widget/OrtsZusatz.js	Wed Feb 08 15:46:58 2017 +0100
@@ -13,8 +13,8 @@
     extend: 'Lada.view.widget.base.ComboBox',
     alias: 'widget.ortszusatz',
     store: 'OrtsZusatz',
-    displayField: 'id',
-    valueField: 'id',
+    displayField: 'ortszusatz',
+    valueField: 'ozsId',
     editable: this.editable || false,
     disableKeyFilter: true,
     forceSelection: true,

http://lada.wald.intevation.org