This fixes a mistake in acceptitem when returning a Duplicate Item
problem. The ProblemDetail didn't show up in the response because
the constructor erroneously set ProblemDescription instead of
ProblemDetail.
Signed-off-by: Jason Stephenson <jason@sigio.com>
NCIP::Problem->new(
{
ProblemType => 'Duplicate Item',
NCIP::Problem->new(
{
ProblemType => 'Duplicate Item',
- ProblemDescription => "Item with barcode $item_barcode already exists.",
+ ProblemDetail => "Item with barcode $item_barcode already exists.",
ProblemElement => $item_idfield,
ProblemValue => $item_barcode
}
ProblemElement => $item_idfield,
ProblemValue => $item_barcode
}