| Issue 38: | linking to a missing record bombs out instead of returning '' | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. my $order = $dsi->item->order
2. my $ship_addr = $order->ship_address
3. $data->{$orderid}{state} = $ship_addr->state->abbr ### when state_id =
0, no state record exists
What is the expected output? What do you see instead?
Expected:
$data->{$orderid}{state} is an "empty but true" record.
Got:
Can't call method "abbr" on an undefined value
and
DBR::Query::RecHelper::getrelation failed to create dummy record
See regression test for more info.
Sep 14, 2009
#1
daniel.d...@gmail.com
Status:
Fixed
|