fixed: plugin ticket: when a session expires all files from editticket were removed
it should be removed only those new added git-svn-id: svn://ttmath.org/publicrep/winix/trunk@798 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -136,9 +136,9 @@ PT::Space & CreateTicket::PrepareSpace()
|
||||
cur->session->plugin_data.Get(ticket_info->plugin_id) );
|
||||
|
||||
long dir_id = cur->request->dir_tab.back()->id;
|
||||
PT::Space & space = session_data->GetSpace(dir_id, session_data->create_space_map);
|
||||
PT::Space & new_space = session_data->GetNewSpace(dir_id, session_data->create_space_map);
|
||||
|
||||
return space;
|
||||
return new_space;
|
||||
}
|
||||
|
||||
|
||||
@@ -174,7 +174,8 @@ void CreateTicket::MakeGet()
|
||||
ticket_info->ticket = &ticket;
|
||||
ticket_info->item = &cur->request->item;
|
||||
|
||||
ticket_info->CopyTicketSpace(meta, *ticket_info->item);
|
||||
// copy meta info to display correctly new files
|
||||
ticket_info->CopyTicketSpace(meta, cur->request->item);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user