If the jQuery label search returns nothing then an error occurs since the js code does not check if its empty.

Comments

recrit’s picture

Status: Active » Needs review
StatusFileSize
new736 bytes

the attached patch, adds a check to determine if $label is empty before proceeding.

mradcliffe’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Thank you for the patch.

I should have resolved this in the 7.x-2.x branch when I rewrote that functionality and brought it back into the main code base in #3051182: Bring javascript improvements from 7.x-1.x into 7.x-2.x.

I'm going to close this as a outdated, but you can use the patch for your existing 7.x-1.x uses.