Bug#1092291: gosa-plugins-mailaddress: Accessing an account with email attribute fails with 'Undefined constant "active"'

Lars Kruse devel at sumpfralle.de
Mon Jan 6 22:13:01 GMT 2025


Package: gosa-plugins-mailaddress
Version: 2.8~git20211027.08b10a2-2
Severity: normal
Tags: patch

Dear Maintainer,

accessing the mail attribute of a user account (e.g. by clicking on the
email icon next to the username) fails with the following error message:

```
Fatal error: Uncaught Error: Undefined constant "active" in /usr/share/gosa/plugins/personal/mailaddress/class_mailAccount.inc:198 Stack trace:
 #0 /usr/share/gosa/include/class_tabs.inc(172): mailAccount->execute()
 #1 /usr/share/gosa/include/class_management.inc(224): tabs->execute()
 #2 /usr/share/gosa/plugins/admin/users/main.inc(44): management->execute()
 #3 /usr/share/gosa/html/main.php(427): require('...')
 #4 {main} thrown in /usr/share/gosa/plugins/personal/mailaddress/class_mailAccount.inc on line 198
```

The problem can be solved with the following change:

```patch
--- class_mailAccount.inc.orig  2025-01-06 22:48:11.591166049 +0100
+++ class_mailAccount.inc       2025-01-06 22:48:36.063175585 +0100
@@ -195,7 +195,7 @@
         }
 
         $smarty->assign ("multiple_support",$this->multiple_support_active);
-        if ($this->multiple_support-active) {
+        if ($this->multiple_support_active) {
             $smarty->assign ("multi_mail",array_slice ($this->multi_attrs_all['mail'],1));
         }
         return ($display.$smarty->fetch (get_template_path ("generic.tpl",TRUE,dirname (__FILE__))));
```

Thank you for your time!

Cheers,
Lars



More information about the Debian-edu-pkg-team mailing list