Changeset 11129
- Timestamp:
- 08/25/08 21:52:08 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/widget/sfWidgetFormPropelSelect.class.php
r10437 r11129 100 100 public function __clone() 101 101 { 102 $this->setOption('choices', new sfCallable(array($this, 'getChoices'))); 102 if ($this->getOption('choices') instanceof sfCallable) 103 { 104 $callable = $this->getOption('choices')->getCallable(); 105 if (is_array($callable)) 106 { 107 $callable[0] = $this; 108 $this->setOption('choices', new sfCallable($callable)); 109 } 110 } 103 111 } 104 112 } plugins/sfPropelPlugin/trunk/lib/propel/widget/sfWidgetFormPropelSelect.class.php
r10450 r11129 100 100 public function __clone() 101 101 { 102 $this->setOption('choices', new sfCallable(array($this, 'getChoices'))); 102 if ($this->getOption('choices') instanceof sfCallable) 103 { 104 $callable = $this->getOption('choices')->getCallable(); 105 if (is_array($callable)) 106 { 107 $callable[0] = $this; 108 $this->setOption('choices', new sfCallable($callable)); 109 } 110 } 103 111 } 104 112 }

