From 496a1979d2f45b72b81c403efc49d097961f4864 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Sun, 30 Dec 2012 15:33:08 +0000 Subject: [PATCH] fixed: in ticket plugin: editticket incorrectly used ticket_info->Clear() method it was called after some objects were set consequently we were not allowed to edit a ticket git-svn-id: svn://ttmath.org/publicrep/winix/trunk@912 e52654a7-88a9-db11-a3e9-0013d4bc506e --- plugins/ticket/editticket.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/ticket/editticket.cpp b/plugins/ticket/editticket.cpp index e8170a6..458a890 100755 --- a/plugins/ticket/editticket.cpp +++ b/plugins/ticket/editticket.cpp @@ -226,14 +226,14 @@ void EditTicket::MakePost() void EditTicket::MakeGet() { + ticket_info->Clear(); + ticket_info->FindCurrentConf(); + Ticket & ticket = PrepareTicket(); PT::Space & meta = PrepareSpace(); ticket_info->ticket = &ticket; ticket_info->item = &cur->request->item; - ticket_info->Clear(); - ticket_info->FindCurrentConf(); - // copy meta info to display correctly new files ticket_info->CopyTicketSpace(meta, cur->request->item); }