After disabling/re-enabling PM/VBO the "Issue #" column is filled with "N/A"

CommentFileSizeAuthor
#5 Edit_view_patches_896292.png46.32 KBjleinenbach

Comments

jleinenbach’s picture

same here

aidanlis’s picture

I don't know how this can happen ... the data is only meant to be deleted on hook_uninstall. If anyone has any ideas, please let me know.

jleinenbach’s picture

I don't think that these entries are deleted as the issue numbers even don't appear if you add new patches.

aidanlis’s picture

Hrmmm ... can you edit the view and see if there's anything obviously wrong?

jleinenbach’s picture

StatusFileSize
new46.32 KB

Nothing obvious to me.

Content: Drupal.org links to:
/en/admin/build/views/nojs/config-item/patches/default/field/field_drupal_issue_value

aidanlis’s picture

Can you edit that field and resave it?

jleinenbach’s picture

If I open the patch node, I can see and edit that value.
After I resaved it, it is still visible there, but the list shows me "N/A".

jleinenbach’s picture

Oops, sorry. Deleted. Although this appeared with a patch manager edit, this appears to be a boost module problem.

jleinenbach’s picture

The "Issue link" format produces no output:

/admin/build/views/edit/patches -> Fields

If I change the Field "Content: Drupal.org" from "Issue link" to "Default", the lists shows the Issue numbers at least in plain text.

Workaround:
Do what I described above, but additionally, activate "Rewrite the output of this field" and enter:
<a href="http://drupal.org/node/[field_drupal_issue_value]">[field_drupal_issue_value]</a>

This will work with issue numbers, but not for comments (if you use the 123456-12 format).

Is it perhaps a bug of the function theme_patch_manager_formatter_issuelink($element)?

Additional Views module bug found:
If you deactivate the "Rewrite the output of this field" checkbox, but keep the rewrite string from above, then it's still active! o_O

Perhaps everything is a bug of the views module? I'm using v6.x-3.0-alpha3.

EDIT: Link correction.

jleinenbach’s picture

Hmm,

I don't really know what I am doing, but if I edit the patch_manager.module file from this:

function theme_patch_manager_formatter_issuelink($element) {
$nid = $value = $element['#node']->node_data_field_drupal_issue_field_drupal_issue_value;

to this:
function theme_patch_manager_formatter_issuelink($element) {
$nid = $value = $element['#node']->node_data_field_module_field_drupal_issue_value;

Then the links appear.

aidanlis’s picture

Status: Active » Fixed

This should be fixed now.

Status: Fixed » Closed (fixed)

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