From 27a9fc9e3ff3841fdb796e82e6457cc003434e81 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 19 Jul 2006 06:50:58 +0000 Subject: [PATCH] Fixed submit button handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4219 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/smarty/plugins/block.render.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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); -- 2.30.2