PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | api/Resource/FrontendResource/CartResource.php +5 -1 1.6.1 → 1.6.5 View file →
@@ -404,9 +404,13 @@
404 404 }
405 405
406 406 $utmData = static::prepareUtmData($data);
407 407 if ($utmData) {
408 - $cart->utm_data = array_merge(is_array($cart->utm_data) ? $cart->utm_data : [], $utmData);
408 + // Replaced, not merged. A cart row is reused across visits, so merging
409 + // key by key accumulated a union of every touch that ever reached it and
410 + // the column stopped describing any single one. The browser has already
411 + // resolved which touch this is, so its block is the answer.
412 + $cart->utm_data = $utmData;
409 413 $cart->save();
410 414 }
411 415
412 416 return $cart;