Permalink
Browse files

Don't show template recording rules in mythweb

Trying to edit a recording rule template with mythweb can cause it to
be deleted.  This hack makes mythweb ignore template recording rules
until someone with real PHP skills can add full support for them.

Fixes #10977
  • Loading branch information...
David Engel
David Engel committed Aug 15, 2012
1 parent 7232c54 commit ff51537e64dc7f0e955ea9c651c18140f20a9f66
Showing with 4 additions and 0 deletions.
  1. +1 −0 modules/tv/includes/recording_schedules.php
  2. +3 −0 modules/tv/tmpl/default/schedules.php
@@ -23,6 +23,7 @@
define('rectype_dontrec', 8);
define('rectype_finddaily', 9);
define('rectype_findweekly', 10);
+ define('rectype_template', 11);
// Define the search types
define('searchtype_power', 1);
@@ -88,6 +88,9 @@ function attempt_to_show_tip(element) {
$prev_group = '';
$cur_group = '';
foreach ($the_schedules as $schedule) {
+ // Ignore templates until full support can be added
+ if ($schedule->type == rectype_template)
+ continue;
// Reset the command variable to a default URL
$urlstr = 'recordid='.$schedule->recordid;

0 comments on commit ff51537

Please sign in to comment.