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:
tomasz.sowa committed 2021-03-08 21:06:50 +01:00
1 parent ab5c44a2cb
commit 57aad8b454
17 files changed
+121 -128

No files matched your search

+4 -1
View File
@@ -81,7 +81,10 @@ void Seo::MakePost()
seo.Add(L"description", description);
seo.Add(L"keywords", keywords);
item.update(false, true);
ItemModelData item_model_data;
item_model_data.prepare_unique_url = false;
item.update(item_model_data);
//db->EditSubjectById(item, item.id);
//db->EditMetaById(item.meta, item.id);