In #983, I changed it so the order status log is stored in a separate database table from the actual orders for querying/performance reasons.
However, in testing something else, I realised that after that change, the HasMany relationship was being passed in as the $value to the Status Log fieldtype's augment method which caused an issue when trying to augment the status log since it's expecting an array of arrays instead.
This PR fixes that by transforming the HasMany relationship into the right format of arrays that the fieldtype can augment.
In #983, I changed it so the order status log is stored in a separate database table from the actual orders for querying/performance reasons.
However, in testing something else, I realised that after that change, the
HasMany
relationship was being passed in as the$value
to the Status Log fieldtype'saugment
method which caused an issue when trying to augment the status log since it's expecting an array of arrays instead.This PR fixes that by transforming the
HasMany
relationship into the right format of arrays that the fieldtype can augment.