I have a content type with multilingual support disabled. I just upgraded to the latest dev and now the language selector widget is showing up on the node edit form, along with the (all languages) hints. This is particularly embarrassing since any authenticated user is supposed to be able to use this form.
The new interface is working great on node types where I want translation enabled... but I don't want it popping up where it's supposed to be disabled!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | entity_translation-check_bundles-1811672-3.patch | 1.24 KB | joelrosen |
| #1 | entity_translation-check_bundles-1811672-1.patch | 1 KB | joelrosen |
Comments
Comment #1
joelrosen commentedHere's a patch.
It looks like you guys forgot to check if the bundle had ET enabled in entity_translation_entity_form_get_handler? This seems to fix things. I hope you can take a look before releasing a beta.
Comment #2
plachThanks for reporting!
Please, use entity_extract_ids() to get the entity bundle.
For consistency with the rest of code we should keep this on one line.
Comment #3
joelrosen commentedAh wonderful, didn't know about entity_extract_ids.
Comment #4
plachCommitted and pushed, thanks!
Comment #5
joelrosen commentedThanks for taking care of this so quickly!
Small thing, but is it possible for you to attribute me as the author for this commit? It's not a big deal but it's nice to get credited. Thanks.
Comment #6
plachUsually I do, but this time I typed the wrong command. Really sorry about that :(
Next time I certainly will :)
However you've been credited in the changelog.
Comment #7
plachThis will need test coverage.
Comment #9
guillaumev commentedI'd like to reopen this as I see the following behaviour, on a site with only one language (English) after a clean standard Drupal installation, on content types with "Multilingual support" set to Disabled:
This language selector should not appear given that the "Multilingual support" of this content type is disabled.
Note that I'm using the latest dev version of entity_translation.
Comment #10
guillaumev commentedClosing this as I created another issue: http://drupal.org/node/1933022