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:
@@ -1073,7 +1073,10 @@ bool System::EditFile(Item & item, bool with_url, int notify_code, bool call_plu
|
||||
|
||||
item.item_content.SetDateModifyToNow();
|
||||
|
||||
bool status = item.update(with_url, true);
|
||||
ItemModelData item_model_data;
|
||||
item_model_data.prepare_unique_url = with_url;
|
||||
|
||||
bool status = item.update(item_model_data);
|
||||
//Error status = db->EditItemById(item, with_url);
|
||||
|
||||
if( status )
|
||||
|
Reference in New Issue
Block a user