Summary | missing column in function _renderVarDisplayEnd Form/Renderer.php |
Queue | Horde Framework Packages |
Queue Version | FRAMEWORK_3 |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | |
Requester | michael.menge (at) zdv (dot) uni-tuebingen (dot) de |
Created | 06/10/2008 (6206 days ago) |
Due | |
Updated | 06/15/2008 (6201 days ago) |
Assigned | 06/10/2008 (6206 days ago) |
Resolved | 06/15/2008 (6201 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
http://cvs.horde.org/diff.php/framework/Form/Form/Renderer.php?r1=1.221&r2=1.222&ty=u
New Attachment: Vacation.png
or supply a small script to reproduce the problem?
We want to disallow our users to edit the "My email Addresses" field
in Ingo Vacaions,
Therefor we patched ingo/vacation.php. See the Attached Image
horde/ingo# diff -u vacation.php.orig vacation.php
--- vacation.php.orig 2008-05-01 00:11:50.000000000 +0200
+++ vacation.php 2008-06-10 15:13:30.000000000 +0200
@@ -50,7 +50,7 @@
$form->setSection('advanced', _("Advanced Settings"));
if (empty($conf['hooks']['vacation_addresses']) ||
empty($conf['hooks']['vacation_only'])) {
- $v = &$form->addVariable(_("My email addresses:"), 'addresses',
'longtext', true, false, null, array(5, 40));
+ $v = &$form->addVariable(_("My email addresses:"), 'addresses',
'longtext', true, true, null, array(5, 40));
$v->setHelp('vacation-myemail');
}
$v = &$form->addVariable(_("Addresses to not send responses to:"),
'excludes', 'longtext', false, false, null, array(10, 40));
---------------------------------------------------
I think this may happen in any Form where Readonly and Readwrite
Variables are used, but i don't
konw if this is happening anywhere else. If it happens anyware else in
Horde there is a 50% chance that we don't see it.
In case of readonly the functions _renderVarDisplayBegin and
_renderVarDisplayEnd are used instad of _renderVarInputBegin and
_renderVarInputEnd which have one column less.
The other idea would be not to call _renderVarDisplay* but
_renderVarInput* and parse the readonlyflag to _renderVarInput* so
that readonly option is inserted in the input htmltag
Taken from Chuck Hagenbuch
State ⇒ Feedback
supply a small script to reproduce the problem?
when it's not needed.
State ⇒ Assigned
State ⇒ Unconfirmed
New Attachment: Renderer.patch
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ missing column in function _renderVarDisplayEnd Form/Renderer.php
Type ⇒ Bug
Priority ⇒ 1. Low
turned of.
The first is correct, but the second results in the alternating row
colors for even
and odd rows can breake on the last column