[Tickets #10657] portal block does not list user defined rules
bugs at horde.org
bugs at horde.org
Fri Oct 14 10:10:46 UTC 2011
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/10657
------------------------------------------------------------------------------
Ticket | 10657
Created By | thpo+horde at dotrc.de
Summary | portal block does not list user defined rules
Queue | Ingo
Version | Git master
Type | Bug
State | Unconfirmed
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
thpo+horde at dotrc.de (2011-10-14 10:10) wrote:
the following patch adds the user rules to the portal block:
diff --git a/ingo/lib/Block/Overview.php b/ingo/lib/Block/Overview.php
index 9325986..e5b1fe5 100644
--- a/ingo/lib/Block/Overview.php
+++ b/ingo/lib/Block/Overview.php
@@ -34,7 +34,7 @@ class Ingo_Block_Overview extends Horde_Core_Block
$html = '<table width="100%" height="100%">';
$html_pre = '<tr><td valign="top">';
$html_post = '</td></tr>';
- foreach ($filters->getFilterList() as $filter) {
+ foreach ($filters->getFilterList() as $rule_number => $filter) {
if (!empty($filter['disable'])) {
$active = _("inactive");
} else {
@@ -97,6 +97,13 @@ class Ingo_Block_Overview extends Horde_Core_Block
_("Spam Filter") . '</a> ' . $active . $html_post;
}
break;
+
+ default:
+ $editurl =
Horde::url('rule.php')->copy()->add(array('edit' => $rule_number,
'actionID' => 'rule_edit'));
+ $html .= $html_pre . '</td><td>' .
+ Horde::link($editurl, sprintf(_("Edit %s"),
$filter['name'])) .
+ $filter['name'] . '</a> ' . $active . $html_post;
+ break;
}
}
More information about the bugs
mailing list