Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi-
rate.js was throwing an error for me on a node displayed in a panel template override:
Fix for me was to remove the line:
var ids = widget.attr('id').match(/^rate\-([a-z]+)\-([0-9]+)\-([0-9]+)\-([0-9])$/);
from which the variable ids
does not appear to be used.
Appears to be a harmless and simple fix. Advice?
Comment | File | Size | Author |
---|---|---|---|
#1 | rate-js_bug_match_on_undefined-2038923-1.patch | 495 bytes | texas-bronius |
Comments
Comment #1
texas-bronius CreditAttribution: texas-bronius commentedPatch attached to fix this javascript error.
Comment #2
berliner CreditAttribution: berliner commentedWorks for me.
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedConflicts with https://drupal.org/node/1676746#comment-7125736
Comment #4
mauritsl CreditAttribution: mauritsl commentedThis is not an issue anymore I guess. The following issues made this one superfluous:
#1295240: Integrate with Panels UI
#1676746: Addtional Classes and more unique ID
Comment #5
nonsimilar CreditAttribution: nonsimilar commentedUnfortunately no, the issue is still present in the last build of 7.x-2.x-dev.
The patch #1 works, but it may be conflicting with the code in the 7.x-1.x branch. I've applied it anyway as it was breaking the voting.