From 0b4093d8ecea679a2a97b8da6fee6cce4da251c2 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 7 Apr 2010 11:31:30 +0000 Subject: [PATCH] Updated trustModes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17508 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc index 036e74549..3e55b675d 100644 --- a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc +++ b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc @@ -258,9 +258,9 @@ class sudo extends plugin Delete values *********************/ foreach($_POST as $name => $value){ - if(preg_match("/^del_/",$name)){ - $attr = preg_replace("/^del_([^_]*).*$/","\\1",$name); - $value= preg_replace("/^del_[^_]*_([0-9]*)$/","\\1",$name); + if(preg_match("/^delS_/",$name)){ + $attr = preg_replace("/^delS_([^_]*).*$/","\\1",$name); + $value= preg_replace("/^delS_[^_]*_([0-9]*)$/","\\1",$name); if($this->acl_is_writeable($attr)){ $attrs = $this->$attr; if(isset( $attrs[$value])){ @@ -323,7 +323,7 @@ class sudo extends plugin */ $neg_img= image('plugins/sudo/images/negate.png','','!'); $option = image('plugins/sudo/images/negate.png','neg_%ATTR%_%KEY%'); - $option.= image('images/lists/trash.png', 'del_%ATTR%_%KEY%'); + $option.= image('images/lists/trash.png', 'delS_%ATTR%_%KEY%'); foreach(array('sudoUser','sudoCommand','sudoHost','sudoRunAs') as $l){ $l.="Data"; $$l = array(); -- 2.30.2