From 8ab5ef92a2438bfc18e1907302af9c91c1698a7d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 18 Apr 2007 10:34:26 +0000 Subject: [PATCH] bugfix: new 'buttononly' widget was registered to be processed --- etemplate/inc/class.uietemplate.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index 719801fee7..eec6ee7aa2 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -1169,11 +1169,11 @@ $onclick = ($onclick ? preg_replace('/^return(.*);$/','if (\\1) ',$onclick) : '').$cell['onchange']; } $html .= !$readonly ? $this->html->submit_button($form_name,$label,$onclick, - strlen($label) <= 1 || $cell['no_lang'],$options,$img,$app,(($type=='buttononly') ? 'button' : 'submit')) : + strlen($label) <= 1 || $cell['no_lang'],$options,$img,$app,$type == 'buttononly' ? 'button' : 'submit') : $this->html->image($app,$ro_img); } $extra_label = False; - if (!$readonly) + if (!$readonly && $type != 'buttononly') // input button, are never submitted back! { $GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = $cell['type']; if (strtolower($name) == 'cancel')