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:
@@ -75,10 +75,11 @@ bool Meta::EditAdminMeta(Item & item, const std::wstring & meta_str, bool use_se
|
||||
{
|
||||
if( Parse(meta_str) )
|
||||
{
|
||||
item.propagate_connector();
|
||||
item.item_content.meta_admin = space;
|
||||
|
||||
//if( db->EditAdminMetaById(space, item_id) == WINIX_ERR_OK )
|
||||
if( item.update(false, true) )
|
||||
if( item.item_content.update() )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -105,10 +106,11 @@ bool Meta::EditMeta(Item & item, const std::wstring & meta_str, bool use_ses_log
|
||||
{
|
||||
if( Parse(meta_str) )
|
||||
{
|
||||
item.propagate_connector();
|
||||
item.item_content.meta = space;
|
||||
|
||||
//if( db->EditMetaById(space, item_id) == WINIX_ERR_OK )
|
||||
if( item.update(false, true) )
|
||||
if( item.item_content.update() )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user