Skip to content

Commit

Permalink
When using LanguageDropdownField on searchable_fields, it doesn't get…
Browse files Browse the repository at this point in the history
… instantiated with title parameter - and as DropdownField class doesn't require it, we should make it optional
  • Loading branch information
thaissa committed Feb 9, 2018
1 parent 044971c commit 4cfae43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/forms/LanguageDropdownField.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class LanguageDropdownField extends GroupedDropdownField {
* @param string $list Indicates the source language list.
* Can be either Common-English, Common-Native, Locale-English, Locale-Native
*/
function __construct($name, $title, $excludeLocales = array(),
function __construct($name, $title=null, $excludeLocales = array(),
$translatingClass = 'SiteTree', $list = 'Common-English', $instance = null
) {
$usedLocalesWithTitle = Translatable::get_existing_content_languages($translatingClass);
Expand Down

0 comments on commit 4cfae43

Please sign in to comment.