From ff51537e64dc7f0e955ea9c651c18140f20a9f66 Mon Sep 17 00:00:00 2001 From: David Engel Date: Wed, 15 Aug 2012 16:37:02 -0500 Subject: [PATCH] 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 --- modules/tv/includes/recording_schedules.php | 1 + modules/tv/tmpl/default/schedules.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/modules/tv/includes/recording_schedules.php b/modules/tv/includes/recording_schedules.php index afc893bba..cf57c1062 100644 --- a/modules/tv/includes/recording_schedules.php +++ b/modules/tv/includes/recording_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); diff --git a/modules/tv/tmpl/default/schedules.php b/modules/tv/tmpl/default/schedules.php index 9c7f273ea..757246fdb 100644 --- a/modules/tv/tmpl/default/schedules.php +++ b/modules/tv/tmpl/default/schedules.php @@ -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;