Download & Extend

Undefined variable: account in webform_set_breadcrumb()

Project:Webform
Version:7.x-4.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:eltermann
Status:reviewed & tested by the community

Issue Summary

Just found this user_access('access own webform results', $account) with $account not defined.

Patch attached.

AttachmentSize
0001-Removing-undefined-and-unnecessary-variable.patch927 bytes

Comments

#1

Status:needs review» reviewed & tested by the community

Patch applies cleanly.

The breadcrumb still functions properly for users with the 'access own webform results' permission.

#2

patch solves the problem

#3

Confirmed again. +1

#4

Status:reviewed & tested by the community» needs review

Can we also fix another problem with the same function, involving cases where $breadcrumb starts off empty? Webform was adding an empty breadcrumb item.

AttachmentSize
webform-1803808-4.patch 983 bytes

#5

Worked for me too.

#6

Status:needs review» reviewed & tested by the community

@pjcdawkins, that is out of scope for this particular issue. Please file a different issue.

OP's patch is RTBC.

#7

work for me.