Ticket #6377: dojox.data.XmlStore_20080410.patch

File dojox.data.XmlStore_20080410.patch, 0.7 kB (added by jaredj, 9 months ago)
  • data/XmlStore.js

     
    961961                //              An item to delete 
    962962                //      returns: 
    963963                //              A delete URL 
    964                 if (!this.url !== "") { 
    965                         return this.url; //string 
    966                 } 
    967964                var url = this.url; 
    968965                if (item && this.keyAttribute !== "") { 
    969966                        var value = this.getValue(item, this.keyAttribute); 
    970967                        if (value) { 
    971                                 url = url + '?' + this.keyAttribute + '=' + value; 
     968                                var key = this.keyAttribute.charAt(0) ==='@' ? this.keyAttribute.substring(1): this.keyAttribute; 
     969                                url += url.indexOf('?') < 0 ? '?' : '&'; 
     970                                url += key + '=' + value; 
    972971                        } 
    973972                } 
    974973                return url;     //string