From: hickert Date: Fri, 20 Apr 2007 07:26:04 +0000 (+0000) Subject: Update FAIdebianRelease when copying a package list into another release X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7d13d7fc88422dfab51eab065864709841a19454;p=gosa.git Update FAIdebianRelease when copying a package list into another release git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6151 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index 0635c85e4..7e172ce1c 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -565,6 +565,17 @@ class faiPackage extends plugin { /* Ask for cn */ $smarty = get_smarty(); + + /* Assemble release name */ + $tmp= preg_replace('/,ou=fai,ou=configs,ou=systems,.*$/', '', $_SESSION['faifilter']['branch']); + $tmp= preg_replace('/ou=/', '', $tmp); + $rev= array_reverse(split(',', $tmp)); + $this->FAIdebianRelease= ""; + foreach ($rev as $part){ + $this->FAIdebianRelease.= "/$part"; + } + $this->FAIdebianRelease= preg_replace('#^/#', '', $this->FAIdebianRelease); + $smarty->assign("cn" ,$this->cn); $str = $smarty->fetch(get_template_path("paste_fai_object.tpl",TRUE)); $ret = array(); diff --git a/plugins/admin/fai/paste_fai_object.tpl b/plugins/admin/fai/paste_fai_object.tpl index 66a772462..1b94e5374 100644 --- a/plugins/admin/fai/paste_fai_object.tpl +++ b/plugins/admin/fai/paste_fai_object.tpl @@ -2,4 +2,3 @@ -