Strangest thing. Suddenly, all the linked node titles in any view with a node: title fields selected to "Link this field to node" have disappeared. Link/title gone from view display.

If I remove the Link this field to node checkbox, the title returns (without link). This is completely out of the blue. The only change made recently was adding apachesolr search module to the site.

I realize I can use the "Out put field as link" method with tokens, however I have many many views using the link this field to node method.

Not sure if this is related, but when I try to dump $data & $values in function render_link($data, $values) in views_handler_field_node.inc they are empty, even though they are populated when I look at render($values).


  /**
   * Render whatever the data is as a link to the node.
   *
   * Data should be made XSS safe prior to calling this function.
   */
  function render_link($data, $values) {
   dpm($data); // empty
   dpm($values); // empty
    if (!empty($this->options['link_to_node']) && $data !== NULL && $data !== '') {
      $this->options['alter']['make_link'] = TRUE;
      $this->options['alter']['path'] = "node/" . $values->{$this->aliases['nid']};
      if (isset($this->aliases['language'])) {
        $languages = language_list();
        if (isset($languages[$values->{$this->aliases['language']}])) {
          $this->options['alter']['language'] = $languages[$values->{$this->aliases['language']}];
        }
        else {
          unset($this->options['alter']['language']);
        }
      }
    }
    return $data;
  }

  function render($values) {
    dpm($values) // populated as is first argument below.
    return $this->render_link(check_plain($values->{$this->field_alias}), $values);
  }

marking as support request until anyone else confirms this...thanks.

CommentFileSizeAuthor
#4 editablefields-title.patch636 bytesdigi24

Comments

mpaler’s picture

Project: Views (for Drupal 7) » Editable Fields
Version: 6.x-2.12 » 6.x-3.x-dev
Category: support » bug

This was posted this in Views, but this turns out to be an Editablefields bug. The bug described above is due to upgrading ef to the 3.x branch.

Maitreya’s picture

I can confirm, i have the exact same problem. After updated EF my views missed all kinds of fields (some where editable, some links).
Also the new save button does not work from within modal AND inline.
And all editable fields within a View show "Not set", but dont know if its related to this problem.

andreiashu’s picture

Priority: Major » Normal

Sorry, the 6.x-3.x branch is not yet production ready - this is why we haven't released a alpha version for it yet.
There is quite a lot more work that needs to be done for EF in the 3.x branch so please don't use it unless you want to help developing.

digi24’s picture

StatusFileSize
new636 bytes

I attached a patch that should fix the problem in non-editable state.

joelpittet’s picture

Status: Active » Closed (outdated)

Closing this to triage the queue. Feel free to comment if you'd like this to be re-opened, though currently there is nobody supporting the 6.x branch.