#1 November 20, 2014 10:10am

jmason03
Member
Registered: January 9, 2014
Posts: 123

Edit ID for publishPendingItem

I believe that the function publishPendingItems in /core/inc/bigtree/auto-modules.php needs to have a return placed before the call to createItem that way it returns the id of the created item. The reason being that the new id is assigned to $edit_id in core/admin/auto-modules/forms/process.php when publishPendingItem is called. From the few tests that I've done, without adding that return statement the value returned by publishPendingItem is always NULL.

Could have been a mistake on my part at some point but wanted to share just in case.

Offline

#2 November 20, 2014 11:26am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: Edit ID for publishPendingItem

You're very right! Thanks for the bug report. I'll push the fix up to git shortly.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.