Got this error while I enabled JavaScript toggle for flag and user not allowed to unflag node.

This error prevent replacing flag link with Unflag not allowed text.

attached patch that fix this bug.

CommentFileSizeAuthor
flag-fix-undefined-nodeType-js.patch1.03 KBmelsawy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cs_shadow’s picture

Issue summary: View changes
Status: Patch (to be ported) » Needs review

Fixing issue status.

Status: Needs review » Needs work

The last submitted patch, flag-fix-undefined-nodeType-js.patch, failed testing.

cs_shadow’s picture

@melsawy, This patch is not valid.

The location of files should not be inside 'sites/all/...', you need to clone the repo of this module, perform the changes there and then create a patch.

joachim’s picture

Version: 7.x-3.5 » 7.x-3.x-dev

Version should also be set to the current branch head (against which patch should be rolled too).