Hi,
The “onchange” field of etemplate currently does not get expanded prior to
the pre_process function of an extension to be called. This affects the
ajax_select widget which saves the value of the onchange field in
javascript, and further expansion is not taken into account. For instance,
in a row repeat situation, the onchange function could not be set to be
different for each line when we use the ajax select widget.
The patch below (which works against the current svn version of the file)
solves the issue by ensuring that this field gets expanded before the
pre_process function is called. Please include it in etemplate prior to the
1.6 release.
Regards
Raphael Alla
<===========
— class.uietemplate.inc.php (révision 25993)
+++ class.uietemplate.inc.php (copie de travail)
@@ -999,6 +999,10 @@
{
$cell[‘size’] =
$this->expand_name($cell[‘size’],$show_c,$show_row,$content[’.c’],$content[’.row’],$content);
}
‘@’)
$this->expand_name($cell[‘onchange’],$show_c,$show_row,$content[’.c’],$content[’.row’],$content);
$this->extensionPreProcess($type,$form_name,$value,$cell,$readonlys[$name]);
–
Raphael Alla
Alphalog Calédonie
Mitija Australia
+61 4 15 678 576
+687 78 86 86
http://www.mitija.com
http://www.alphalog.nc