DeuxHuitHuit / multilingual_field

Multilingual Textbox field for Symphony CMS
http://symphonyextensions.com/extensions/multilingual_field/
Other
12 stars 13 forks source link

"Use value from main language if selected language has empty value" doesn't work #45

Closed alpacaaa closed 10 years ago

alpacaaa commented 11 years ago

This check:

if( $this->get('def_ref_lang') === 'yes' && $data['value-'.$lang_code] === '' )

won't work because (in my case) $data['value-'.$lang_code] is NULL. Do you think changing all those checks in a more loosely form, like this:

 if( $this->get('def_ref_lang') === 'yes' && !$data['value-'.$lang_code] )

would be a good idea?

mblabs commented 11 years ago

Thanks Alpacaaa (as ever :+1:), your solution works!

vlad-ghita commented 10 years ago

Since today I've taken over the extension. Update your git refs etc. I'll update the status of this issue over the weekend.

alpacaaa commented 10 years ago

Just in time :)

Sorry, it has been a hard day, good luck mantaining the extension!

vlad-ghita commented 10 years ago

Fixed in next release. Thanks!