diff options
-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 { |