Closed (fixed)
Project:
Linkit
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2012 at 17:10 UTC
Updated:
22 Mar 2013 at 15:50 UTC
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:

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;
}
| Comment | File | Size | Author |
|---|---|---|---|
| scrnst1.gif | 5.14 KB | duncan246 |
Comments
Comment #1
anonBug confirmed.
This is happening if there following cases are true:
Comment #2
anonFixed.
The unpublished text is now gone.