fixed: ticket sets a default function only for directories
fixed: reading a new url and subject in Functions::ReadItem() added: tickets are sorted now (by date) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@659 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -41,6 +41,9 @@ void AddFunctions(PluginInfo & info)
|
||||
|
||||
void SelectDefaultFunction(PluginInfo & info)
|
||||
{
|
||||
if( info.request->is_item )
|
||||
return;
|
||||
|
||||
if( info.system->mounts.pmount->type == ticket_info.mount_type_ticket )
|
||||
info.request->function = &fun_ticket;
|
||||
}
|
||||
@@ -85,6 +88,7 @@ using namespace Ticket;
|
||||
|
||||
ticket_info.SetDb(info.db);
|
||||
ticket_info.SetTDb(&tdb);
|
||||
ticket_info.SetSystem(info.system);
|
||||
|
||||
fun_ticket.SetTDb(&tdb);
|
||||
fun_ticket.SetTicketInfo(&ticket_info);
|
||||
|
Reference in New Issue
Block a user