diff --git a/webapp/models/Fragment.php b/webapp/models/Fragment.php index 68cd5d4b..e4469805 100644 --- a/webapp/models/Fragment.php +++ b/webapp/models/Fragment.php @@ -38,12 +38,12 @@ class Fragment extends BaseModel } public static function oldToDto($row){ - $itemMeta = mt\Item::get($row['item_id']); + $itemMeta = mt\Item::get($row['token_id']); $dto = array(); if ($itemMeta){ $dto = array( 'token_id' => $row['token_id'], - 'item_id' => $row['item_id'], + 'item_id' => $row['token_id'], 'type' => $itemMeta['sub_type'], 'parts' => substr($itemMeta['id'],-2,1), 'balance' => $row['balance'],