fix bug with adding items to a new gallery from an item page
Merge branch 'bug-fix' into develop