From 84863ce89a1a712aa00df5c33227cecafded881a Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 8 May 2007 03:16:10 +0000 Subject: Fixed #593. --- .gitattributes | 1 + framework/Web/UI/ActiveControls/TInPlaceTextBox.php | 5 ++++- tests/FunctionalTests/tickets/protected/pages/Ticket593.page | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket593.page diff --git a/.gitattributes b/.gitattributes index 91bc4e4f..dac6711d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2569,6 +2569,7 @@ tests/FunctionalTests/tickets/protected/pages/Ticket587_reopened.page -text tests/FunctionalTests/tickets/protected/pages/Ticket587_reopened.php -text tests/FunctionalTests/tickets/protected/pages/Ticket591.page -text tests/FunctionalTests/tickets/protected/pages/Ticket591.php -text +tests/FunctionalTests/tickets/protected/pages/Ticket593.page -text tests/FunctionalTests/tickets/protected/pages/Ticket605.page -text tests/FunctionalTests/tickets/protected/pages/Ticket606.page -text tests/FunctionalTests/tickets/protected/pages/Ticket614.page -text diff --git a/framework/Web/UI/ActiveControls/TInPlaceTextBox.php b/framework/Web/UI/ActiveControls/TInPlaceTextBox.php index e1305ed0..4c75aa2b 100644 --- a/framework/Web/UI/ActiveControls/TInPlaceTextBox.php +++ b/framework/Web/UI/ActiveControls/TInPlaceTextBox.php @@ -10,6 +10,8 @@ * @package System.Web.UI.ActiveControls */ +Prado::using('System.Web.UI.ActiveControls.TActiveTextBox'); + /** * TInPlaceTextBox Class * * @@ -239,7 +241,8 @@ class TInPlaceTextBox extends TActiveTextBox */ protected function addAttributesToRender($writer) { - TTextBox::addAttributesToRender($writer); + //calls the TWebControl to avoid rendering other attribute normally render for a textbox. + TWebControl::addAttributesToRender($writer); $writer->addAttribute('id',$this->getLabelClientID()); $this->getActiveControl()->registerCallbackClientScript( $this->getClientClassName(), $this->getPostBackOptions()); diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket593.page b/tests/FunctionalTests/tickets/protected/pages/Ticket593.page new file mode 100644 index 00000000..efa8a542 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket593.page @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file -- cgit v1.2.3