summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cf79f6e)
raw | patch | inline | side by side (parent: cf79f6e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 30 Nov 2006 07:05:33 +0000 (07:05 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 30 Nov 2006 07:05:33 +0000 (07:05 +0000) |
Added goFaxPrinter to the list of available printer, to avoid data loss caused by missing read acls
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5259 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5259 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofax/faxaccount/class_gofaxAccount.inc | patch | blob | history |
diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc
index 14e6bb223f3c9099094f3b71699a6928107c880b..1b1b26b4432c027009fbcd1eb1ba2a79a8738dba 100644 (file)
asort ($this->printerList);
}
+ /* Check if the currently selected printer is still available.
+ If not, append current printer to list of available.
+ It could be possible, that we are not allowed to view printers and so the list is empty ... */
+ if(!empty($this->goFaxPrinter) && !isset($this->printerList[$this->goFaxPrinter])) {
+ $this->printerList[$this->goFaxPrinter] = "[".$this->goFaxPrinter."]";
+ }
+
/* Get global filter config */
if (!is_global("faxfilter")){
$ui= get_userinfo();
/* IF mail is specified (which is only the case if there's no mail account
present), check if it's valid.. */
if (@isset($this->parent->by_object['mailAccount']) &&
- $this->goFaxDeliveryMode && 32){
+ $this->goFaxDeliveryMode & 32){
if ($this->mail == ""){
$message[]= _("Mail delivery is checked, but no address has been specified.");
} elseif (!is_email($this->mail)){