forked from torrust/torrust-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge torrust#292: Do not allow empty category names
c2b7488 feat!: [torrust#288] do not allow empty category names (Jose Celano) Pull request description: It was allowed to use an empty string like "" or " " for a category name. From now on, it's not allowed. If there were some empty names in the database, they were not renamed. Admins must optionally do that. Names were anyway UNIQUE. A migration to rename empty names was not added because there can be more than one category, for example: - "" - " " - " " - Etcetera We could have generated names like "no category 1", "no category 2", but it's not likely that admins have created empty categories. ACKs for top commit: josecelano: ACK c2b7488 Tree-SHA512: 72a2b41d3757b6bf54178448f14644e0449765b3afede9c1e4a080270ac91ba00742072431091a767322ffa5b4f89f4df42a2ae4b77523005b300319bc7e71d7
- Loading branch information
Showing
3 changed files
with
22 additions
and
19 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
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
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