wazum / sluggi

The TYPO3 CMS slug helper
GNU General Public License v3.0
38 stars 22 forks source link

[BUGFIX] Do not try to regenerate slug for non existing site language #62

Closed astehlik closed 2 years ago

astehlik commented 3 years ago

Steps to reproduce the problem that is fixed by this pull request:

  1. Create a site configuration with an additional language
  2. Create a page in the Backend and create a translation for that page
  3. Now remove the language from the site configuration
  4. Edit the page properties of the created page (that still has a translation in the database, not visible in the Backend any more)
  5. You get an Exception: "Language 1 does not exist on site my-site."
wazum commented 2 years ago

Tried the same with TYPO3 CMS version 10, could not reproduce an error there, so I guess the current version is fine as-is.