Summary | Warning displayed on column options page |
Queue | Turba |
Queue Version | 2.2.1 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | |
Requester | dion.rowney (at) usask (dot) ca |
Created | 07/23/2008 (6186 days ago) |
Due | |
Updated | 07/23/2008 (6186 days ago) |
Assigned | |
Resolved | 07/23/2008 (6186 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Not A Bug
http://cvs.horde.org/diff.php/turba/templates/prefs/columnselect.inc?r1=1.17.2.9&r2=1.17.2.10
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Warning displayed on column options page
Queue ⇒ Turba
Milestone ⇒
Patch ⇒ No
horde/turba/templates/prefs/columnselect.inc
Drag columns to re-arrange them. Check a column to enable it.
Warning: Invalid argument supplied for foreach() in
/var/www/html/horde/turba/templates/prefs/columnselect.inc on line 64
1. First Name
2. Last Name
3. Middle Names
etc...
To resolve I added a check in my code and submit it for your consideration:
// First the selected columns in their current order.
if (substr($column, 0, 2) == '__' || $column == 'name') {
continue;
}
$checked = isset($selected[$column]) ? ' checked="checked"' : '';
$name = htmlspecialchars('turba-prefs-cols-' . $source . '-' . $column);
echo '<li id="turba-prefs-cols-' . htmlspecialchars($source) .
'_' . $i . '"><input name="' . $name . '" id="' . $name . '"
type="checkbox" class="check
box"' . $checked . ' />' .
htmlspecialchars($attributes[$column]['label']) . '</li>';
$i++;
}