From: hickert Date: Wed, 19 Jul 2006 06:50:58 +0000 (+0000) Subject: Fixed submit button handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=27a9fc9e3ff3841fdb796e82e6457cc003434e81;p=gosa.git Fixed submit button handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4219 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/smarty/plugins/block.render.php b/include/smarty/plugins/block.render.php index daceb8e7b..0b764c280 100755 --- a/include/smarty/plugins/block.render.php +++ b/include/smarty/plugins/block.render.php @@ -16,15 +16,20 @@ function smarty_block_render($params, $text, &$smarty) unset($params['acl']); } + echo "".$acl.""; + /* Read / Write*/ if(preg_match("/w/i",$acl)){ return ($text); } - $from = array("/name=/i"); - $to = array("disabled name="); - $text = preg_replace($from,$to,$text); - + /* Disable objects, but keep submit buttons active in readmode */ + if(!preg_match("/submit/",$text)){ + $from = array("/name=/i"); + $to = array("disabled name="); + $text = preg_replace($from,$to,$text); + } + /* Read only */ if(preg_match("/r/i",$acl)){ return($text);