mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
"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
|
||||
{
|
||||
$onclick = ($onclick ? preg_replace('/^return(.*);$/','if (\\1) ',$onclick) : '').
|
||||
(((string)$cell['onchange'] === '1' || $img && !$onclick) ?
|
||||
"return submitit($this->name_form,'$form_name');" : $cell['onchange']).'; return false;';
|
||||
(((string)$cell['onchange'] === '1' || $img) ?
|
||||
"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)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user