Given an array:
[0] => array(
stock_id => 123
CAD => array(
cost => 0.70
)
USD => array(
cost => 1.20
)
)
[1] => ...
)
|
and another:
currency1 = array(
[0] => array(currency_id => USD)
[1] => array(currency_id => CAD)
)
|
and a spreadsheet template, with this as the cell:
[stock.[currency1.currency_id;block=table:table-cell].cost;type=currency]
Merge currency1 first, to give two cells:
[stock.USD.cost;type=currency]
[stock.CAD.cost;type=currency]
Then merge stock. Expected:
1.20
0.70
Actual is blank cells. This did work with tbsOOo.
I suspect a bug on line 990, the data is not properly set through the SubLst.
This change makes it work:
- $data = isset($Value[$sub]) ? $Value[$sub] : null ;
+ $data = isset($data[$sub]) ? $data[$sub] : null ;
Is this a good change?