removed from Item: update() and save() methods which take the 'url_was_changed' argument
and added ItemModelData (based on morm::ModelData) class which has 'prepare_unique_url' field, an object of this class is passed to update(), insert() and save() methods fixed: Dirs::CheckRootDir(): update should update childs too (privileges) WIP: #4
This commit is contained in:
@@ -198,6 +198,8 @@ return new_space;
|
||||
|
||||
bool EditTicket::CloseTicket()
|
||||
{
|
||||
cur->request->item.propagate_connector();
|
||||
|
||||
PT::Space & ticket_space = cur->request->item.item_content.meta_admin.FindAddSpace(L"ticket");
|
||||
ticket_space.Add(L"closed", true);
|
||||
|
||||
@@ -205,7 +207,7 @@ bool EditTicket::CloseTicket()
|
||||
thread_space.Add(L"closed", true);
|
||||
|
||||
//if( db->EditAdminMetaById(cur->request->item.ameta, cur->request->item.id) == WINIX_ERR_OK )
|
||||
if( cur->request->item.update(false, true) )
|
||||
if( cur->request->item.item_content.update() )
|
||||
{
|
||||
log << log3 << "EditTicket: closing ticket" << logend;
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user