Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
domain_path.js contains code which cycles through domains like this:
$('#edit-domains .form-checkbox').each(function(index)
This works if the domain module displays domains as checkboxes, but not if domains are displayed as a select or multi-select box: in the domain module, ./domain_content/domain_content.module can display domains in both ways though:
$form['domain']['domains'] = array(
'#type' => empty($format) ? 'checkboxes' : 'select',
In turn, the format is determined by the domain module if there are more than 25 domains:
define('DOMAIN_LIST_SIZE', 25);
...
function domain_select_format() {
$domains = domain_domains();
$format = 0;
if (count($domains) > variable_get('domain_list_size', DOMAIN_LIST_SIZE)) {
$format = 1;
}
return variable_get('domain_select_format', $format);
}
A temporary workaround is to set domain_select_format to 0, like this:
drush vset domain_select_format 0
Comment | File | Size | Author |
---|---|---|---|
#3 | domain_path-2908039-add_select.patch | 5.38 KB | Mokys |
Comments
Comment #2
alberto56 CreditAttribution: alberto56 commentedComment #3
Mokys CreditAttribution: Mokys commentedComment #5
skrasulevskiy CreditAttribution: skrasulevskiy at Adyax commentedPatch was applied to 7.x-1.x version. Thanks @Mokys for help!
Comment #6
skrasulevskiy CreditAttribution: skrasulevskiy at Adyax commented