diff --git a/src/Xhgui/Saver/Mongo.php b/src/Xhgui/Saver/Mongo.php index f3c2f7b47..74eb4fa6f 100644 --- a/src/Xhgui/Saver/Mongo.php +++ b/src/Xhgui/Saver/Mongo.php @@ -19,7 +19,9 @@ public function __construct(MongoCollection $collection) public function save(array $data) { - $data['_id'] = self::getLastProfilingId(); + if (!isset($data['_id'])) { + $data['_id'] = self::getLastProfilingId(); + } if (isset($data['meta']['request_ts'])) { $data['meta']['request_ts'] = new MongoDate($data['meta']['request_ts']['sec']);