summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-01-23 21:37:31 +0000
committerxue <>2006-01-23 21:37:31 +0000
commit4282256a7bf5580cd0fa22ce9686024352f23a6f (patch)
treea363b25eeff7212753e32a5dc07af9a301454736
parent5fcc4f3b77d930d25497cdcc19bd7fa582c17cae (diff)
Passing an empty validationgroup will only return validators that do not belong to any group.
-rw-r--r--framework/Web/UI/TPage.php6
-rw-r--r--tests/FunctionalTests/quickstart_tests/Controls/ImageButtonTestCase.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php
index c58ebefe..1dfc3b1e 100644
--- a/framework/Web/UI/TPage.php
+++ b/framework/Web/UI/TPage.php
@@ -257,13 +257,13 @@ class TPage extends TTemplateControl
* Returns a list of registered validators.
* If validation group is specified, only the validators in that group will be returned.
* @param string validation group
- * @return TList registered validators
+ * @return TList registered validators in the requested group. If the group is null, all validators will be returned.
*/
- public function getValidators($validationGroup='')
+ public function getValidators($validationGroup=null)
{
if(!$this->_validators)
$this->_validators=new TList;
- if($validationGroup==='')
+ if($validationGroup===null)
return $this->_validators;
else
{
diff --git a/tests/FunctionalTests/quickstart_tests/Controls/ImageButtonTestCase.php b/tests/FunctionalTests/quickstart_tests/Controls/ImageButtonTestCase.php
index 5b0675d8..c633a1df 100644
--- a/tests/FunctionalTests/quickstart_tests/Controls/ImageButtonTestCase.php
+++ b/tests/FunctionalTests/quickstart_tests/Controls/ImageButtonTestCase.php
@@ -13,7 +13,7 @@ class ImageButtonTestCase extends SeleniumTestCase
$this->verifyTextPresent("You clicked at ","");
// a command button
- $this->clickAndWait("id=ctl0_body_ctl1", "");
+ $this->clickAndWait("ctl0\$body\$ctl1", "");
$this->verifyTextPresent("Command name: test, Command parameter: value","");
// a button causing validation