Ticket #10650: Schedule.php.2.patch

File Schedule.php.2.patch, 1.5 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        if ($this->type == rectype_dontrec) {
     283            $srchflg = _or($this->search,          0,          true);
     284            if ($this->search != 5) {
     285                $srchflg = 0;
     286            }
     287        } else {
     288            $srchflg = _or($this->search,          0,          true);
     289        }
    279290        $sh = $db->query('REPLACE INTO record (recordid,type,chanid,starttime,startdate,endtime,enddate,search,
    280291                                               title,subtitle,description,profile,recpriority,category,
    281292                                               maxnewest,inactive,maxepisodes,autoexpire,startoffset,endoffset,
     
    294305                         $this->starttime,
    295306                         $this->endtime,
    296307                         $this->endtime,
    297                          _or($this->search,        0,          true),
     308                         $srchflg,
    298309                         _or($this->title,         'Untitled'      ),
    299310                         _or($this->subtitle,      ''              ),
    300311                         _or($this->description,   ''              ),