Fixed and closed #385: exceptions logged when migrating pages and copying categories (results unaffected).
This commit is contained in:
parent
f0268791f6
commit
462716961d
2 changed files with 5 additions and 3 deletions
|
@ -1126,8 +1126,10 @@ namespace ScrewTurn.Wiki.Plugins.SqlCommon {
|
|||
newCategories = new string[pageCategories.Count];
|
||||
|
||||
for(int i = 0; i < pageCategories.Count; i++) {
|
||||
CategoryInfo added = AddCategory(tempName, pageCategories[i]);
|
||||
newCategories[i] = added.FullName;
|
||||
if(GetCategory(transaction, NameTools.GetFullName(tempName, pageCategories[i])) == null) {
|
||||
CategoryInfo added = AddCategory(tempName, pageCategories[i]);
|
||||
newCategories[i] = added.FullName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue