Skip to content

Commit 175ebef

Browse files
committed
[AutoTimer]
- change by SvenH: read current autotimers first to avoid losing existing timers when adding new timer from Partnerbox client
1 parent 952dce0 commit 175ebef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autotimer/src/AutoTimerResource.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ class AutoTimerAddXMLAutoTimerResource(AutoTimerBaseResource):
264264
def render_POST(self, req):
265265
req.setResponseCode(http.OK)
266266
req.setHeader('Content-type', 'application/xhtml+xml;' )
267-
req.setHeader('charset', 'UTF-8')
267+
req.setHeader('charset', 'UTF-8')
268+
autotimer.readXml() # read current timers to ensure autotimer.timers is populated with current autotimers
268269
autotimer.readXmlTimer(req.args['xml'][0])
269270
if config.plugins.autotimer.always_write_config.value:
270271
autotimer.writeXml()

0 commit comments

Comments
 (0)