added: 'rm' function can work with tickets
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@565 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -285,12 +285,6 @@ void dir_last_dates_equal(Info & i)
|
||||
|
||||
|
||||
|
||||
void dir_old(Info & i)
|
||||
{
|
||||
HtmlEscape(i.out, request.session->dir_old);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -129,7 +129,7 @@ PatternTab::iterator i;
|
||||
|
||||
if( i == pattern_tab.end() )
|
||||
{
|
||||
log << log2 << "PC: there is no such an item to delete, id: " << item.id << ", url: " << item.url << logend;
|
||||
log << log3 << "PC: there is no such an item to delete, id: " << item.id << ", url: " << item.url << logend;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -256,7 +256,7 @@ void Templates::CreateFunctions()
|
||||
functions.Insert("dir_last_date_modification", dir_last_date_modification);
|
||||
functions.Insert("dir_last_dates_equal", dir_last_dates_equal);
|
||||
|
||||
functions.Insert("dir_old", dir_old);
|
||||
|
||||
|
||||
/*
|
||||
user
|
||||
@@ -348,6 +348,7 @@ void Templates::CreateFunctions()
|
||||
*/
|
||||
functions.Insert("ticket_is", ticket_is);
|
||||
functions.Insert("ticket_can_create", ticket_can_create);
|
||||
functions.Insert("ticket_can_edit", ticket_can_edit);
|
||||
functions.Insert("ticket_type", ticket_type);
|
||||
functions.Insert("ticket_status", ticket_status);
|
||||
functions.Insert("ticket_priority", ticket_priority);
|
||||
|
@@ -170,8 +170,6 @@ namespace TemplatesFunctions
|
||||
void dir_last_date_modification(Info & i);
|
||||
void dir_last_dates_equal(Info & i);
|
||||
|
||||
void dir_old(Info & i);
|
||||
|
||||
|
||||
/*
|
||||
user
|
||||
@@ -258,6 +256,7 @@ namespace TemplatesFunctions
|
||||
*/
|
||||
void ticket_is(Info & i); // !! change to is_ticket lub na ticket_defined
|
||||
void ticket_can_create(Info & i);
|
||||
void ticket_can_edit(Info & i);
|
||||
void ticket_type(Info & i);
|
||||
void ticket_status(Info & i);
|
||||
void ticket_priority(Info & i);
|
||||
|
@@ -32,6 +32,11 @@ void ticket_can_create(Info & i)
|
||||
}
|
||||
|
||||
|
||||
void ticket_can_edit(Info & i)
|
||||
{
|
||||
i.result = request.CanEditTicket();
|
||||
}
|
||||
|
||||
|
||||
void ticket_type(Info & i)
|
||||
{
|
||||
|
Reference in New Issue
Block a user