When the 'Include unpublished nodes' option is checked in the profile, and an unpublished node is selected from the results, then the inserted link includes unwanted markup from the HTML used to manage the appearance of the node's title in the results:

screenshot

I'm working around this (in 7.x-2.5, but the bug is also present in 2.x-dev) by remming out the lines that add 'unpublished' next to the node title. The highlighted pink background to the title is perhaps enough on its own to signify that the node is unpublished. In linkit-plugin-node.class.php:

@@ -14,9 +14,9 @@ class LinkitPluginNode extends LinkitPluginEntity {
    */
   function buildLabel($entity) {
     $label = parent::buildLabel($entity);
-    if ($this->conf['include_unpublished'] && $entity->status == NODE_NOT_PUBLISHED) {
-      $label .= '<span class="status"> - ' . t('unpublished') . '</span>';
-    }
+    //if ($this->conf['include_unpublished'] && $entity->status == NODE_NOT_PUBLISHED) {
+      // $label .= '<span class="status"> - ' . t('unpublished') . '</span>';
+    //}
     return $label;
   }
CommentFileSizeAuthor
scrnst1.gif5.14 KBduncan246

Comments

anon’s picture

Bug confirmed.

This is happening if there following cases are true:

  • The Include unpublished nodes settings is checked
  • There is no selection made in the editor when inserting an unpublished node
anon’s picture

Status: Active » Fixed

Fixed.

The unpublished text is now gone.

Status: Fixed » Closed (fixed)

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