diff options
| -rw-r--r-- | UPGRADE | 3 | ||||
| -rw-r--r-- | framework/Web/UI/WebControls/TCheckBoxList.php | 12 | 
2 files changed, 4 insertions, 11 deletions
| @@ -18,6 +18,9 @@ Upgrading from v3.1.1    to
       'albums' => array(self::MANY_TO_MANY, 'Artist', 'album_artists')
  - Active Record no longer automatically adds/removes/updates related objects.
 +- 'Raw' mode for TCheckboxList and TRadioButtonList (and their active counter parts) now render
 +  a surrounding <span> tag to allow client scripts to identify them with the ClientId. You may
 +  have to check your CSS.
  Upgrading from v3.1.0
 diff --git a/framework/Web/UI/WebControls/TCheckBoxList.php b/framework/Web/UI/WebControls/TCheckBoxList.php index 51b363ad..d6eca318 100644 --- a/framework/Web/UI/WebControls/TCheckBoxList.php +++ b/framework/Web/UI/WebControls/TCheckBoxList.php @@ -366,17 +366,7 @@ class TCheckBoxList extends TListControl implements IRepeatInfoUser, INamingCont  	 */  	protected function getSpanNeeded ()  	{ -		if ($this->getRepeatLayout()===TRepeatLayout::Raw) -		{ -			$id=$this->getID(); -			// Check if we have a validator registered for this control -			foreach ($this->getPage()->getValidators() as $v) -			{ -				if ($v->getControlToValidate()===$id) -					return true; -			} -		} -		return false; +		return $this->getRepeatLayout()===TRepeatLayout::Raw;  	}  	/**
 | 
