Opened 15 years ago
Closed 15 years ago
Last modified 15 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 Changed 15 years ago by
comment:2 Changed 15 years ago by
For what it's worth, I made this change on my installation and it fixed the problem.
comment:3 Changed 15 years ago by
Same deal here: Fix works for now. In the long run, a UI to actually select from the channel groups may be needed though.
Changed 15 years ago by
Attachment: | channels.patch added |
---|
Patch for channels.php with the reporter's code.
comment:4 Changed 15 years ago by
Milestone: | 0.22 → 0.24 |
---|
Bumping open 0.22 milestone tickets to 0.24
Confirm this bug and that the code provided does fix it.