Opened 17 years ago
Closed 16 years ago
Last modified 16 years ago
#7536 closed defect (wontfix)
Mythweb Favorites not Correct for 0.22
| Reported by: | Owned by: | Rob Smith | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | Plugin - MythWeb | Version: | 0.22 |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
The mythweb setting to only show favorite channels is broken for the current release. It refers to the no missing favorites tables. The fix is below for the mythweb file modules/tv/includes/channels.php
function load_all_channels() {
global $db;
global $Channels;
global $Callsigns;
$Channels = array();
// Initialize the query
if ($_SESSION['guide_favonly'])
$sql = 'SELECT channel.* FROM channel, channelgroup, channelgroupnames WHERE '
."channelgroupnames.name='Favorites' AND channelgroupnames.grpid = channelgroup.grpid AND "
.'channel.chanid = channelgroup.chanid AND';
else
$sql = 'SELECT * FROM channel WHERE';
...
Further, a good enhancement would be to add a simple toggle to show just favorites vs. all on the listing page itself to quickly switch info.
Attachments (1)
Change History (8)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
For what it's worth, I made this change on my installation and it fixed the problem.
comment:3 by , 17 years ago
Same deal here: Fix works for now. In the long run, a UI to actually select from the channel groups may be needed though.
by , 17 years ago
| Attachment: | channels.patch added |
|---|
Patch for channels.php with the reporter's code.

Confirm this bug and that the code provided does fix it.