Re: QuickForm bug and patch, on removeElement()

From: Date: Wed, 16 Jul 2003 09:40:31 +0000
Subject: Re: QuickForm bug and patch, on removeElement()
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18290@lists.php.net to get a copy of this message
Hi! Wolfram Kriesing wrote:
sorry, this patch doesnt work properly either, for more than one element that is removed, since addElement() doesnt renumber the keys of ... $this->_elements[] i try to create a new patch, or does one of the QF-guys know an easier solution?
Fixing addElement() to actually get the last key from the array seems easier... Something along the lines of $this->_elementIndex[$elementName] = end(array_keys($this->_elements)); Test this, please.

« previous php.pear.dev (#18290) next »