Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Just found this user_access('access own webform results', $account) with $account not defined.
Patch attached.
Comment | File | Size | Author |
---|---|---|---|
#4 | webform-1803808-4.patch | 983 bytes | pjcdawkins |
0001-Removing-undefined-and-unnecessary-variable.patch | 927 bytes | eltermann | |
Comments
Comment #1
bxtaylor CreditAttribution: bxtaylor commentedPatch applies cleanly.
The breadcrumb still functions properly for users with the
'access own webform results'
permission.Comment #2
karl qin CreditAttribution: karl qin commentedpatch solves the problem
Comment #3
Shawn DeArmond CreditAttribution: Shawn DeArmond commentedConfirmed again. +1
Comment #4
pjcdawkins CreditAttribution: pjcdawkins commentedCan we also fix another problem with the same function, involving cases where $breadcrumb starts off empty? Webform was adding an empty breadcrumb item.
Comment #5
froboyWorked for me too.
Comment #6
Shawn DeArmond CreditAttribution: Shawn DeArmond commented@pjcdawkins, that is out of scope for this particular issue. Please file a different issue.
OP's patch is RTBC.
Comment #7
Jerenus CreditAttribution: Jerenus commentedwork for me.
Comment #8
quicksketchThanks guys! Committed to D7 3.x and 4.x branches. Doesn't seem to affect 6.x-3.x.
Comment #9
quicksketchBTW I included @pjcdawkins's patch in #4, as it didn't do any harm that I could see.
Comment #10
pjcdawkins CreditAttribution: pjcdawkins commentedThanks
Comment #12
tigertrussell CreditAttribution: tigertrussell commentedDid this not make it into the latest version of Webform? I see a patch marked RTBC in Oct 2012... it's 2014 now and the lines of the patch don't match up, so I can only assume that this is a different version... yet the patch isn't applied.