recover pickercombo if no app declared
authorMichael Spahn <m.spahn@metaways.de>
Wed, 28 Jun 2017 14:49:08 +0000 (16:49 +0200)
committerMichael Spahn <m.spahn@metaways.de>
Wed, 28 Jun 2017 14:45:30 +0000 (16:45 +0200)
 - create app instance from recordClass

Change-Id: I1fc70b4ae362daee13b856e53d065b7c3d0be2c2
Reviewed-on: http://gerrit.tine20.com/customers/4970
Reviewed-by: Michael Spahn <m.spahn@metaways.de>
Tested-by: Michael Spahn <m.spahn@metaways.de>
tine20/Tinebase/js/widgets/relation/PickerCombo.js

index 9e17857..8f08178 100644 (file)
@@ -35,10 +35,16 @@ Tine.widgets.relation.PickerCombo = Ext.extend(Ext.Container, {
      */
     store: null,
 
+    app: null,
+
     /**
      * initializes the component
      */
     initComponent: function() {
+        if (!this.app && this.recordClass) {
+            this.app = Tine.Tinebase.appMgr.get(this.recordClass.getAppName());
+        }
+
         this.combo = Tine.widgets.form.RecordPickerManager.get(this.app, this.recordClass, Ext.applyIf({},this));
         this.items = [this.combo];