Two errors with entity claim block

1, In some instances $entity can be null.
Call to undefined method EntityValueWrapper::getBundle() in /sites/all/modules/entity_claim/includes/entity_claim.block.inc on line 112

2. Redirect on entity claim form submit is not honored.

Both issues are fixed with this patch and are in the same patch because there was no way to fix issues with two separate patches.

CommentFileSizeAuthor
#3 errors-claim-block-2850613-3.patch3.38 KBmonstrfolk

Comments

monstrfolk created an issue. See original summary.

monstrfolk’s picture

Title: Call to undefined method EntityValueWrapper::getBundle() » Call to undefined method EntityValueWrapper::getBundle() in block
monstrfolk’s picture

Title: Call to undefined method EntityValueWrapper::getBundle() in block » Errors in claim block
Issue summary: View changes
StatusFileSize
new3.38 KB
monstrfolk’s picture

Status: Active » Needs review
monstrfolk’s picture

Issue summary: View changes

nikunjkotecha’s picture

Status: Needs review » Fixed

Thanks @monstrfolk for reporting the issue and providing the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.