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
CommentFileSizeAuthor
#3 domain_path-2908039-add_select.patch5.38 KBMokys
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alberto56 created an issue. See original summary.

alberto56’s picture

Issue summary: View changes
Mokys’s picture

Status: Active » Needs review
FileSize
5.38 KB

  • skrasulevskiy committed fcea0b4 on 7.x-1.x authored by Mokys
    Issue #2908039 by Mokys: Domain paths will not appear on node edit form...
skrasulevskiy’s picture

Patch was applied to 7.x-1.x version. Thanks @Mokys for help!

skrasulevskiy’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.