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:
@@ -154,8 +154,11 @@ void Upload::UploadFile(Item & item, const std::wstring & tmp_filename)
|
||||
{
|
||||
if( UploadSaveStaticFile(item, tmp_filename) )
|
||||
{
|
||||
ItemModelData item_model_data;
|
||||
item_model_data.prepare_unique_url = false;
|
||||
|
||||
//cur->request->status = db->EditFileById(item, item.id);
|
||||
if( item.update(false, true) )
|
||||
if( item.update(item_model_data) )
|
||||
{
|
||||
plugin->Call(WINIX_FILE_ADDED, &item);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user