summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2020-02-24 20:21:54 +0100
committerhorchi <vdr@jwendel.de>2020-02-24 20:21:54 +0100
commit7e89bf01a1e8829d27cc35e051c06fd0de54a321 (patch)
treea7fed87a1d3598511e6bd5b7cfe67d5adff11e4a
parent9250a19c953832f569252b26149b73c53cb43e67 (diff)
downloadvdr-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.h7
-rw-r--r--webstore.c11
2 files changed, 12 insertions, 6 deletions
diff --git a/HISTORY.h b/HISTORY.h
index f6bd680..e5af584 100644
--- a/HISTORY.h
+++ b/HISTORY.h
@@ -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
diff --git a/webstore.c b/webstore.c
index c11d96c..4e434e2 100644
--- a/webstore.c
+++ b/webstore.c
@@ -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
{