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:
@@ -136,8 +136,11 @@ void Sort::UpdateSortIndex(Item & item, int sort_index)
|
||||
{
|
||||
item.sort_index = sort_index;
|
||||
|
||||
ItemModelData item_model_data;
|
||||
item_model_data.prepare_unique_url = false;
|
||||
|
||||
//if( db->EditSortIndexItemById(item.id, sort_index) == WINIX_ERR_OK )
|
||||
if( item.update(false, false) )
|
||||
if( item.update(item_model_data, false) )
|
||||
{
|
||||
log << log2
|
||||
<< "Sort: updated sort index, item_id=" << item.id
|
||||
|
Reference in New Issue
Block a user