summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7453d14)
raw | patch | inline | side by side (parent: 7453d14)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 5 Sep 2006 10:45:43 +0000 (10:45 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 5 Sep 2006 10:45:43 +0000 (10:45 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4594 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiPackage.inc | patch | blob | history | |
plugins/admin/fai/faiPackage.tpl | patch | blob | history |
index 0cb3792f555ef1052129d24b16a3918d78927c72..67f5c66668c270ee3182319e75690852fc79583e 100644 (file)
}
/* 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;
}
}
- }
+ }
/* Save Configuration */
if(isset($_POST['SaveObjectConfig'])){
index 40c13313449725ec40d48aefcee36734627af23b..388c1e84852d261a19ca5dcc6d2a118f6df578e6 100644 (file)
<input type="submit" name="Addpkg" value="{t}Add{/t}" {$OptionsACL} {$cnACL}>
<input type="submit" name="Delpkg" value="{t}Remove{/t}" {$OptionsACL} {$cnACL}>
<input type="submit" name="Conpkg" value="{t}Configure{/t}" {$OptionsACL} >
- <input type="submit" name="Markpkg" value="{t}Toggle remove flag{/t}" {$OptionsACL} >
+ <input type="submit" name="Markpkg" value="{t}Toggle remove flag{/t}" {$OptionsACL} {$cnACL}>
</td>
</tr>
</table>