BoltTranslate / Translate

Provides translation for contenttypes.
Other
43 stars 37 forks source link

[BUG] Creating content not in default language, having title field translatable, results in no slug in default language after 'Save' #114

Closed sbonardt closed 6 years ago

sbonardt commented 7 years ago

I have two languages on my Bolt install, English and Dutch (EN and NL). It works like a charm, and I have implemented Translate on multiple sites. However, I feel I now have encountered a bug:

When going to the admin section in the NL language (not the default) and creating a new piece of content, this gets me to the creating-new-piece-of-content-page and the lang selector isn't present so I am creating content in NL (not the default! lang) The title is translatable, so when hit SAVE the NL version gets saved properly, slug is there in the NL version. The EN version however doesn't get a slug, as the slug gets derived from the title and the title is translatable and therefore not set in the default ENG instance of the content.

As the slug is not set, going to the listing page in the bolt backend for the base language results in a error in bolt's default/base "base_listing.twig" template as the slugs aren't set for the particular (EN) pieces of content.

It does however work like a charm when creating new content in the base language. So it seems a problem only when creating new content in any language other than the default.

Details

screen shot 2017-04-12 at 11 08 45 screen shot 2017-04-12 at 11 09 00 screen shot 2017-04-12 at 11 09 10 screen shot 2017-04-12 at 11 09 44

SvanteRichter commented 7 years ago

Hmm. creating a new record in a non-default locale should not be possible, I think this bug was introduced somewhere during 4.0...

SvanteRichter commented 6 years ago

Closing, I'm pretty sure that this is fixed so that it requires a record in the default locale first, lemme know if that isn't the case :)