diff options
author | horchi <vdr@jwendel.de> | 2020-02-24 20:21:54 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2020-02-24 20:21:54 +0100 |
commit | 7e89bf01a1e8829d27cc35e051c06fd0de54a321 (patch) | |
tree | a7fed87a1d3598511e6bd5b7cfe67d5adff11e4a | |
parent | 9250a19c953832f569252b26149b73c53cb43e67 (diff) | |
download | vdr-epg-daemon-7e89bf01a1e8829d27cc35e051c06fd0de54a321.tar.gz vdr-epg-daemon-7e89bf01a1e8829d27cc35e051c06fd0de54a321.tar.bz2 |
2020-02-24: version 1.1.158 (horchi)\n - bugfix: Fixed move of timer by webif\n\n1.1.158
-rw-r--r-- | HISTORY.h | 7 | ||||
-rw-r--r-- | webstore.c | 11 |
2 files changed, 12 insertions, 6 deletions
@@ -4,8 +4,8 @@ * ----------------------------------- */ -#define _VERSION "1.1.157" -#define VERSION_DATE "17.02.2020" +#define _VERSION "1.1.158" +#define VERSION_DATE "24.02.2020" #define DB_API 7 #ifdef GIT_REV @@ -19,6 +19,9 @@ * * +2020-02-24: version 1.1.158 (horchi) + - bugfix: Fixed move of timer by webif + 2020-02-17: version 1.1.157 (horchi) - bugfix: Fixed conflicting timer start times @@ -389,9 +389,12 @@ int cEpgHttpd::modifyCreateTimer(cDbRow* timerRow) if (knownTimer) { - timerDb->copyValues(timerRow, cDBS::ftPrimary); + // timerDb->copyValues(timerRow, cDBS::ftPrimary); + timerDb->setValue("ID", timerRow->getIntValue("ID")); - if (!timerDb->find()) + // if (!timerDb->find()) + + if (!selectTimerById->find()) { connection->commit(); @@ -431,13 +434,13 @@ int cEpgHttpd::modifyCreateTimer(cDbRow* timerRow) // create new on other vdr timerDb->copyValues(timerRow, cDBS::ftData); // takeover all data (possibly modified by user) + timerDb->setValue("VDRUUID", timerRow->getStrValue("VDRUUID")); timerDb->setValue("ID", 0); timerDb->setCharValue("ACTION", taCreate); status += timerDb->insert(); if (status == success) - tell(1, "Created 'move' request for timer (%d) at vdr '%s'", - timerid, timerDb->getStrValue("VDRUUID")); + tell(1, "Created 'move' request for timer (%d) to '%s'", timerid, timerDb->getStrValue("VDRUUID")); } else { |