From 958c90fd37d668b41eea18f304d189b3d1138430 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 5 Sep 2006 10:47:06 +0000 Subject: [PATCH] Hide 'Toggle remove flag' when editing freezed package lists git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4595 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPackage.inc | 20 +++++++++++--------- plugins/admin/fai/faiPackage.tpl | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index c91282532..4591201be 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -282,16 +282,18 @@ class faiPackage extends plugin } /* Configuration dialog open*/ - if((isset($_POST['Markpkg']))&&(isset($_POST['usedPackages']))&&(!empty($_POST['usedPackages']))){ - foreach($_POST['usedPackages'] as $pkg){ - if (isset($this->usedPackages[$pkg])){ - unset($this->usedPackages[$pkg]); - if (preg_match('/^-/', $pkg)){ - $pkg= preg_replace('/^-/', '', $pkg); - } else { - $pkg= preg_replace('/^/', '-', $pkg); + if($this->FAIstate != "freeze"){ + if((isset($_POST['Markpkg']))&&(isset($_POST['usedPackages']))&&(!empty($_POST['usedPackages']))){ + foreach($_POST['usedPackages'] as $pkg){ + if (isset($this->usedPackages[$pkg])){ + unset($this->usedPackages[$pkg]); + if (preg_match('/^-/', $pkg)){ + $pkg= preg_replace('/^-/', '', $pkg); + } else { + $pkg= preg_replace('/^/', '-', $pkg); + } + $this->usedPackages[$pkg]= $pkg; } - $this->usedPackages[$pkg]= $pkg; } } } diff --git a/plugins/admin/fai/faiPackage.tpl b/plugins/admin/fai/faiPackage.tpl index 40c133134..388c1e848 100644 --- a/plugins/admin/fai/faiPackage.tpl +++ b/plugins/admin/fai/faiPackage.tpl @@ -71,7 +71,7 @@ - + -- 2.30.2