- 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:
@@ -330,16 +330,21 @@ void ExportInfo::SendAllFilesFromDir(long dir_id)
|
||||
|
||||
void ExportInfo::AdditionalExport(const Item & item)
|
||||
{
|
||||
const pt::Space::TableType * child_table = item.item_content.meta.find_child_space_table();
|
||||
const pt::Space * export_space = item.item_content.meta.get_space(L"export");// CHECK ME it was find_child_space_table();
|
||||
|
||||
if( child_table )
|
||||
if( export_space )
|
||||
{
|
||||
for(const pt::Space * child : *child_table)
|
||||
{
|
||||
if( child->is_child_space_name(L"export") )
|
||||
AdditionalExport(item, *child);
|
||||
}
|
||||
AdditionalExport(item, *export_space);
|
||||
}
|
||||
|
||||
// if( export_space )
|
||||
// {
|
||||
// for(const pt::Space * child : *export_space)
|
||||
// {
|
||||
// if( child->is_child_space_name(L"export") )
|
||||
// AdditionalExport(item, *child);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user