mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Merge pull request #120 from silverstripe-rebelalliance/esr
BUG: with the enforcement of allowed_actions in 3.2 getLocaleForObject is blocked
This commit is contained in:
commit
42f048f34a
@ -6,6 +6,10 @@
|
||||
* @package translatable
|
||||
*/
|
||||
class LanguageDropdownField extends GroupedDropdownField {
|
||||
|
||||
private static $allowed_actions = array(
|
||||
'getLocaleForObject'
|
||||
);
|
||||
|
||||
/**
|
||||
* Create a new LanguageDropdownField
|
||||
@ -105,4 +109,4 @@ class LanguageDropdownField extends GroupedDropdownField {
|
||||
return $locale;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user