Opened 13 years ago

Closed 13 years ago

#2758 closed defect (fixed)

Unable to save scheduled recording storage group in MythWeb

Reported by: mythtv@… Owned by: xris
Priority: minor Milestone: unknown
Component: mythweb Version: 0.20
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Currently running SVN:12164

With the new storage groups added in SVN 12151, MythWeb will display the storage groups defined and will allow the storage group to be set, but does not save it to the record table in the database.

I fixed it with the addition of the marked line below.

mythplugins/mythweb/modules/tv/detail.php

        // Set things as the user requested
            $schedule->profile       = $_POST['profile'];
            $schedule->recgroup      = $_POST['recgroup'];
>>>>            $schedule->storagegroup  = $_POST['storagegroup'];
            $schedule->autoexpire    = $_POST['autoexpire']   ? 1 : 0;
            $schedule->autocommflag  = $_POST['autocommflag'] ? 1 : 0;
            $schedule->autouserjob1  = $_POST['autouserjob1'] ? 1 : 0;
            $schedule->autouserjob2  = $_POST['autouserjob2'] ? 1 : 0;
            $schedule->autouserjob3  = $_POST['autouserjob3'] ? 1 : 0;
            $schedule->autouserjob4  = $_POST['autouserjob4'] ? 1 : 0;
            $schedule->maxnewest     = $_POST['maxnewest']    ? 1 : 0;
            $schedule->inactive      = $_POST['inactive']     ? 1 : 0;
            $schedule->dupin         = _or($_POST['dupin'],     15);
            $schedule->dupmethod     = _or($_POST['dupmethod'], 6);
            $schedule->recpriority   = intval($_POST['recpriority']);
            $schedule->maxepisodes   = intval($_POST['maxepisodes']);
            $schedule->startoffset   = intval($_POST['startoffset']);
            $schedule->endoffset     = intval($_POST['endoffset']);
            $schedule->autotranscode = $_POST['autotranscode'] ? 1 : 0;
            $schedule->transcoder    = $_POST['transcoder'];
            $schedule->tsdefault     = $_POST['timestretch'];
            $schedule->prefinput     = $_POST['prefinput'];

Cheers, Darryl

Change History (3)

comment:1 Changed 13 years ago by cpinkham

Resolution: fixed
Status: newclosed

(In [12165]) Fix saving of the storagegroup column when editting a schedule in MythWeb.

Patch from Darryl. Closes #2758.

comment:2 Changed 13 years ago by mythtv@…

Resolution: fixed
Status: closedreopened

The same problem occurs in the custom and manual recording schedules pages.

/mythplugins/mythweb/modules/tv/schedules_custom.php /mythplugins/mythweb/modules/tv/schedules_maual.php

Same fix applies..

Cheers, Darryl

comment:3 Changed 13 years ago by xris

Resolution: fixed
Status: reopenedclosed

(In [12343]) fix storage group saving on manual and custom recording schedules. closes #2758

Note: See TracTickets for help on using tickets.