- updated to the new pikotools api (child spaces were removed)
some plugins need to be fixed yet: ticket, gallery, group, menu - added current user to default models as "user" - renamed in User: super_user -> is_super_user, env -> admin_env, pass_hash_salted -> is_pass_hash_salted - now Users class has a WinixModel as a base class some plugin calls have to be fixed yet - added UserWrapper model with a pointer to User class - removed from ItemContent: methods for accessing 'meta' and 'admin_meta', now ezc can iterate through Space classes - fixed in env winix function: if there is "changeuser" parameter then we should only switch the user (not save anything)
This commit is contained in:
@@ -185,7 +185,7 @@ pt::Space & EditTicket::PrepareSpace()
|
||||
|
||||
if( is_new )
|
||||
{
|
||||
pt::Space * ticket_space = cur->request->item.item_content.meta.find_child_space(L"ticket");
|
||||
pt::Space * ticket_space = cur->request->item.item_content.meta.get_space(L"ticket"); // CHECKME it was find_child_space(L"ticket");
|
||||
|
||||
if( ticket_space )
|
||||
{
|
||||
@@ -203,10 +203,10 @@ bool EditTicket::CloseTicket()
|
||||
{
|
||||
cur->request->item.propagate_connector();
|
||||
|
||||
pt::Space & ticket_space = cur->request->item.item_content.meta_admin.find_add_child_space(L"ticket");
|
||||
pt::Space & ticket_space = cur->request->item.item_content.meta_admin.get_add_space(L"ticket"); //CHECKME it was find_add_child_space(L"ticket");
|
||||
ticket_space.add(L"closed", true);
|
||||
|
||||
pt::Space & thread_space = cur->request->item.item_content.meta_admin.find_add_child_space(L"thread");
|
||||
pt::Space & thread_space = cur->request->item.item_content.meta_admin.get_add_space(L"thread"); //CHECKME it was find_add_child_space(L"thread");
|
||||
thread_space.add(L"closed", true);
|
||||
|
||||
//if( db->EditAdminMetaById(cur->request->item.ameta, cur->request->item.id) == WINIX_ERR_OK )
|
||||
|
Reference in New Issue
Block a user