Ticket #10650: Schedule.php.patch

File Schedule.php.patch, 1.3 KB (added by anonymous, 12 years ago)
  • Schedule.php

    old new  
    276276    // Update the type, in case it changed
    277277        $this->type = $new_type;
    278278    // Update the record
     279    // FIXUP for 0.25 - according to how the frontend does dontrecord
     280    // we need to set the search flag to nosearch unless its a manual search
     281    // manual search defined as 5 in recordingtypes.h  - nosearch is 0
     282        $srchflg = $this->search;
     283        if ($this->search != 5) {
     284            $srchflg = 0;
     285        }
    279286        $sh = $db->query('REPLACE INTO record (recordid,type,chanid,starttime,startdate,endtime,enddate,search,
    280287                                               title,subtitle,description,profile,recpriority,category,
    281288                                               maxnewest,inactive,maxepisodes,autoexpire,startoffset,endoffset,
     
    294301                         $this->starttime,
    295302                         $this->endtime,
    296303                         $this->endtime,
    297                          _or($this->search,        0,          true),
     304                         $srchflg,
    298305                         _or($this->title,         'Untitled'      ),
    299306                         _or($this->subtitle,      ''              ),
    300307                         _or($this->description,   ''              ),