From d21f0991c5920ae8432ba4ad561f843bec718d9c Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 27 Feb 2014 22:58:28 +0100 Subject: TRatingList: try harder to find the Caption control MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TRatingList uses a loose method to find its caption control, searching it by id within the page. If the element is not found in the page, try to find it inside the TRatingList’s NamingContainer --- framework/Web/UI/WebControls/TRatingList.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/WebControls/TRatingList.php b/framework/Web/UI/WebControls/TRatingList.php index c48b3cdb..b1673ac0 100644 --- a/framework/Web/UI/WebControls/TRatingList.php +++ b/framework/Web/UI/WebControls/TRatingList.php @@ -175,6 +175,8 @@ class TRatingList extends TRadioButtonList { if($control=$this->getPage()->findControl($id)) return $control; + if($control=$this->getNamingContainer()->findControl($id)) + return $control; } throw new TInvalidDataValueException( 'ratinglist_invalid_caption_id',$id,$this->getID()); -- cgit v1.2.3