Permalink
Browse files

(Fixes issue 652)

  • Loading branch information...
1 parent 3c62111 commit a9bce05472724b4b3380852b322385b0cf3a8a1e qiang.xue committed Oct 27, 2009
Showing with 2 additions and 4 deletions.
  1. +1 −0 CHANGELOG
  2. +1 −4 framework/web/form/CFormElementCollection.php
View
@@ -5,6 +5,7 @@
Version 1.1b to be released
---------------------------
- Bug #642: CPgsqlSchema::findTableNames() should not include view names in the result (Qiang)
+- Bug #652: Calling CFormElementCollection::remove() triggers a method-not-defined error (Qiang)
- Bug: Using CFileValidator causes an error about accessing a method of a non-object (Qiang)
- Chg #574: session ID is no longer hashed for CDbHttpSession (Qiang)
- New: Added support for using table prefixes (Qiang)
@@ -106,10 +106,7 @@ public function add($key,$value)
*/
public function remove($key)
{
- if($this->exists($key))
- {
- $item=parent::remove($key);
+ if(($item=parent::remove($key))!==null)
$this->_form->removedElement($key,$item,$this->_forButtons);
- }
}
}

0 comments on commit a9bce05

Please sign in to comment.