[TYPO3-project-formidable] New option: Disable INPUTs
Manuel Rego Casasnovas
mrego at igalia.com
Tue Jan 15 12:21:37 CET 2008
Hello,
about disable inputs, I've a problem.
When I use a disabled input in a renderlet inside a "datahandler:DB",
value for this field on database is reset to default value.
I solve this problem modifying method "_renderOnly" to consider every
"disabled" renderlet as "renderonly".
I think that it's rigth.
The patch to fix it:
Index: api/class.mainrenderlet.php
===================================================================
--- api/class.mainrenderlet.php (revisión: 163)
+++ api/class.mainrenderlet.php (copia de trabajo)
@@ -938,7 +939,7 @@
}
function _renderOnly() {
- return $this->_isTrue("/renderonly/") ||
$this->i18n_shouldNotTranslate();
+ return $this->_isTrue("/renderonly/") ||
$this->i18n_shouldNotTranslate() || $this->_getDisabled();
}
function hasData() {
Best regards,
Rego
--
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com
More information about the TYPO3-project-formidable
mailing list