The code currently allows users to add a category name that equals the category being edited. (example) Adding self-references should be prevented by:
- Skipping the edit when adding new categories that equal the current category
- Displaying a warning when attempting to change existing categories to the current category name
Source code:
Latest changes
Howto test the code
- Open page Category:Cat-a-lot
- Open cat-a-lot from bottom-right corner
- Open cat-a-lot preferences and enable setting Allow categorising pages (including categories) that are not files
- Select following categories
- Click COPY selected categories to Cat-a-lot data namespace test pages
The expected result is a confirmation box notifying the user that user is performing self-categorization. The confirmation box have options Proceed with other pages or Cancel to abort.