Ticket #11904: mythweb_upcoming_default_fix.patch

File mythweb_upcoming_default_fix.patch, 606 bytes (added by Karl Newman <SiliconFiend@…>, 11 years ago)

Simple patch to fix Default button on Upcoming Recordings page

  • tv/classes/Program.php

    diff -Naur modules.orig/tv/classes/Program.php modules/tv/classes/Program.php
    old new  
    626626 * Revert a show to its default recording schedule settings
    627627/**/
    628628    public function rec_default() {
    629         $schedule =& Schedule::findAll($this->recordid);
     629        $schedule =& Schedule::find($this->recordid);
    630630        if ($schedule && ($schedule->type == rectype_override || $schedule->type == rectype_dontrec))
    631631            $schedule->delete();
    632632    }