Commit ddfbd3a3 authored by Roger Sauret's avatar Roger Sauret Committed by Gaute Hope

fix bug lp:1283158: editing of at template does not work

output value was not unpacked from tuple containing template.

bug and fix by: Roger Sauret.

https://bugs.launchpad.net/ubuntu/+source/gnome-schedule/+bug/1283158Signed-off-by: Gaute Hope's avatarGaute Hope <eg@gaute.vetsj.com>
parent da4fdd85
...@@ -118,8 +118,8 @@ class TemplateManager: ...@@ -118,8 +118,8 @@ class TemplateManager:
if type == "at": if type == "at":
t = self.template.gettemplate ("at", int (id)) t = self.template.gettemplate ("at", int (id))
if t != False: if t != False:
id2, title, command = t id2, title, command, output = t
self.parent.at_editor.showedit_template (self.widget, id2, title, command) self.parent.at_editor.showedit_template (self.widget, id2, title, command, output)
elif type == "crontab": elif type == "crontab":
t = self.template.gettemplate ("crontab", int (id) ) t = self.template.gettemplate ("crontab", int (id) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment