forked from extern/egroupware
"an other fix for bug #645: Error with apostrophes in organisation's fields"
This commit is contained in:
parent
4378a84503
commit
b67a8934e3
@ -1146,8 +1146,8 @@
|
|||||||
if ($this->java_script() && ($cell['onchange'] != '' || $img && !$readonly) && !$cell['needed']) // use a link instead of a button
|
if ($this->java_script() && ($cell['onchange'] != '' || $img && !$readonly) && !$cell['needed']) // use a link instead of a button
|
||||||
{
|
{
|
||||||
$onclick = ($onclick ? preg_replace('/^return(.*);$/','if (\\1) ',$onclick) : '').
|
$onclick = ($onclick ? preg_replace('/^return(.*);$/','if (\\1) ',$onclick) : '').
|
||||||
(((string)$cell['onchange'] === '1' || $img && !$onclick) ?
|
(((string)$cell['onchange'] === '1' || $img) ?
|
||||||
"return submitit($this->name_form,'$form_name');" : $cell['onchange']).'; return false;';
|
"return submitit($this->name_form,'".addslashes($form_name)."');" : $cell['onchange']).'; return false;';
|
||||||
|
|
||||||
if (!$this->html->netscape4 && substr($img,-1) == '%' && is_numeric($percent = substr($img,0,-1)))
|
if (!$this->html->netscape4 && substr($img,-1) == '%' && is_numeric($percent = substr($img,0,-1)))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user