Appointment email not including all requested content

General bug reports for the Archon software.

Moderators: paulnsorensen, kylefox2, prom, rishel

Appointment email not including all requested content

Postby beltramie » Thu Jan 26, 2012 12:46 pm

Hi,

A researcher noticed that when they send us a list of collections and collection content through the research appointment feature, only the collections and the first collection content item for each collection come through on the email to us. All additional collection content for that collection was omitted from the final email.

This is an example from a list I created using my fake researcher account:

05/006 Photographs -- Photographic Prints -- Algol prints, 1892-1994. Series d: 8.5x11" size, Sub-Series 1989, Item 22: Midwinter Ball, 1989

05/007 Photographs -- Photographic Prints -- General, by Era, 1909/10 to present. Series II: Gould/Nason era, 1945-1970, Sub-Series General, Folder 43: Social - Informal Dances, 1945-1970

For both collections there were multiple collection content items that should have come through in email but didnt.

Any idea where I should start looking to troubleshoot?

-Nat Wilson
beltramie
 
Posts: 157
Joined: Mon Feb 16, 2009 3:58 pm
Location: Carleton College, Northfield MN

Re: Appointment email not including all requested content

Postby beltramie » Thu Apr 19, 2012 12:46 pm

K, we figured out this problem. And it seems to be an issue with other sites using Archon too, so I will work on adding it to the Archon github project.

In the following file

archon/packages/collections/pub/research.php
around line 504

there is a foreach statement that is missing the required { }'s

So change:
foreach($arrObjs->Content as $CollectionContentID => $obj)
if($obj instanceof Collection)

To:
foreach($arrObjs->Content as $CollectionContentID => $obj)
{
if($obj instanceof Collection)

And add another closing bracket right after
$_ARCHON->Security->Session->ResearchCart->deleteFromCart($CollectionID, $CollectionContentID);
}

This seems to fix the problem, Nat
beltramie
 
Posts: 157
Joined: Mon Feb 16, 2009 3:58 pm
Location: Carleton College, Northfield MN


Return to Archon Bugs

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron