Relist finished auctions (auctions/finished) relist-link in Auction listings view produces following error:

Warning: reset() expects parameter 1 to be array, string given in EntityListWrapper->set() (line 1026 of /sites/all/modules/entity/includes/entity.wrapper.inc).
EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityMetadataWrapper->set() (line 122 of /sites/all/modules/entity/includes/entity.wrapper.inc).

Comments

uhkis’s picture

Status: Active » Needs review
StatusFileSize
new1.82 KB

Patch to fix relisting feature and the link in views.

mrburton’s picture

After applying the patch, the relist link seems to function properly. But after relisting an auction through the edit form which opens after clicking the link, the formerly closed auction node is not accessible anymore to the user who created it (Access denied), although it's still listed in My auctions page (auctions/my).

mrburton’s picture

Status: Needs review » Needs work
uhkis’s picture

Status: Needs work » Needs review
StatusFileSize
new1.82 KB

On clean install, first patch created a similar but not the same exception. This patch should handle both situations.

As for #2 user needs "View own unpublished content" permission. I'm gonna open up another issue for reviewing current default permissions.

mrburton’s picture

Also tested the second patch, didn't encounter any errors.

uhkis’s picture

Status: Needs review » Fixed

Pushed to dev.

Status: Fixed » Closed (fixed)

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