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 /webstore.c | |
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
Diffstat (limited to 'webstore.c')
-rw-r--r-- | webstore.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 { |