JaquelineBrandao / yii

Automatically exported from code.google.com/p/yii
0 stars 0 forks source link

CMap remove method calls invalid exists method, renders inoperable #652

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Instantiate any CMap derived class, for example create a CForm, and
access it's elements.
2. Try to unset($element['attribute']) or $collection->remove('attribute')

What is the expected output? What do you see instead?

The element should be removed, but an error appears stating that the method
exists does not exist (existential crisis indeed). :)

Changing the method to use contains instead of exists works perfectly.

What version of the product are you using? On what operating system?

Trunk v1479, Linux Mint 7

Patch provided below

Original issue reported on code.google.com by marl...@gmail.com on 26 Oct 2009 at 9:36

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by qiang.xue on 26 Oct 2009 at 9:40

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1486.

Original comment by qiang.xue on 27 Oct 2009 at 4:37