Ticket #6022: patch6022.diff

File patch6022.diff, 0.7 kB (added by wolfram, 10 months ago)
  • form/ComboBox.js

     
    653652                                around: this.domNode, 
    654653                                parent: this 
    655654                        }); 
     655                }, 
     656                 
     657                setValue:function(value){ 
     658                        // Allow passing in a value which actually is a store's item. 
     659                        if (this.store && this.store.isItem(value)) { 
     660                                this.item = value; 
     661                                value = this.store.getValue(value, this.searchAttr); 
     662                                // Set the second parameter (priorityChange) to true. 
     663                                // Why? Just because its done so in _doSelect() too. 
     664                                // hacky ... isn't it? 
     665                                arguments[1] = true; 
     666                        } 
     667                        this.inherited(arguments); 
    656668                } 
    657669        } 
    658670);