Fixed and closed #385: exceptions logged when migrating pages and copying categories (results unaffected).

This commit is contained in:
Dario Solera 2009-10-18 08:30:13 +00:00
parent f0268791f6
commit 462716961d
2 changed files with 5 additions and 3 deletions

View file

@ -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;
}
}
}