summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitattributes1
-rw-r--r--framework/Web/UI/ActiveControls/TInPlaceTextBox.php5
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket593.page5
3 files changed, 10 insertions, 1 deletions
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 @@
+<com:TContent ID="Content">
+
+<com:System.Web.UI.ActiveControls.TInplaceTextBox maxlength="10" Text="Hello" />
+
+</com:TContent> \ No newline at end of file