summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f342e3d)
raw | patch | inline | side by side (parent: f342e3d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Feb 2008 12:45:11 +0000 (12:45 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Feb 2008 12:45:11 +0000 (12:45 +0000) |
-Update gotoPrinterPPD path in ldap too, if entry was renamend.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9014 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9014 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_printGeneric.inc | patch | blob | history | |
plugins/admin/systems/class_printerPPDDialog.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 86d22bab1aa7eea94d09791dcb341f84c45a2680..00231de1713b23dd5701d76430e7c9b7a40e2eee 100644 (file)
if($this->PPDdialogToSave){
$this->PPDdialogToSave->save_ppd();
}
+
if($this->orig_dn != $this->dn && $this->initially_was_account){
if(!empty($this->gotoPrinterPPD)) {
$this->PPDdialogToSave = new printerPPDDialog($this->config, $this->dn,$this->gotoPrinterPPD);
$this->PPDdialogToSave->cn = $this->cn;
$this->PPDdialogToSave->generateProperties();
- $this->PPDdialogToSave->update_ppd_url();
+ $this->gotoPrinterPPD = $this->PPDdialogToSave->update_ppd_url();
}
}
diff --git a/plugins/admin/systems/class_printerPPDDialog.inc b/plugins/admin/systems/class_printerPPDDialog.inc
index ac3aebc5965d3ace0966d0e82a39d14ff8b9d0d2..cf36067aea6df1c7f85fb229b9c6cd0ec5a1461d 100644 (file)
function update_ppd_url()
{
$this->SelectPPD("modified/".$this->selectedPPD['link']);
+ return("modified/".$this->selectedPPD['link']);
}
function check()