-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix logic for suggested id for new site.
This would take the default "Plone" plus the count of existing sites. Usually this works fine, first suggesting Plone, then Plone1, Plone2, etc. But if you have Plone and Plone2 as existing site ids, it would suggest Plone2, which gives an error because it is already taken. The fix is: keep this logic, but if the id is already taken, keep increasing the id until it is free. This fixes #97
- Loading branch information
1 parent
4291603
commit b352285
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Fix logic for suggested id for new site. | ||
It could suggest an id that was already taken. | ||
@mauritsvanrees |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters