From 596fcae81ef7de032afa65fd8ea480a2f635a9bb Mon Sep 17 00:00:00 2001
From: tof <>
Date: Thu, 11 Oct 2007 09:02:07 +0000
Subject: Fixed #719

---
 HISTORY                                           | 1 +
 framework/Web/UI/ActiveControls/TAutoComplete.php | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/HISTORY b/HISTORY
index 5edeccef..f3e6881c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,5 +1,6 @@
 Version 3.1.2 To be released
 ============================
+BUG: Ticket#719 - TAutoCompleter should not trigger Validation if CausesValidation=False (Christophe)
 CHG: Changed TConditional so that the controls in its template behave like they are in its parent (Qiang)
 CHG: Active Record many-to-many relationship change from self::HAS_MANY to self::MANY_TO_MANY (Wei)
 ENH: Active Record supports multiple foreign references of the same table (Wei)
diff --git a/framework/Web/UI/ActiveControls/TAutoComplete.php b/framework/Web/UI/ActiveControls/TAutoComplete.php
index 3b457bbb..e29e2538 100644
--- a/framework/Web/UI/ActiveControls/TAutoComplete.php
+++ b/framework/Web/UI/ActiveControls/TAutoComplete.php
@@ -343,7 +343,8 @@ class TAutoComplete extends TActiveTextBox implements INamingContainer
 		if(($minchars=$this->getMinChars())!=='')
 			$options['minChars'] = $minchars;
 		if(($frequency=$this->getFrequency())!=='')
-			$options['frequency'] = $frequency;
+			$options['frequency'] = $frequency;
+		$options['CausesValidation'] = $this->getCausesValidation();
 		return $options;
 	}
 
-- 
cgit v1.2.3