Quellcode durchsuchen

[backend] Distributions : gestion des doublons dans l'import manuel des abonnements

refactoring
Guillaume Bourgeois vor 5 Jahren
Ursprung
Commit
820073ccc3
1 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
  1. +4
    -3
      common/models/Subscription.php

+ 4
- 3
common/models/Subscription.php Datei anzeigen

@@ -286,9 +286,10 @@ class Subscription extends ActiveRecordCommon
{
if(is_array($arrayOrders) && count($arrayOrders) > 0) {
foreach($arrayOrders as $order) {
if(($order->id_user == $this->id_user || $order->username == $this->username) &&
$order->id_point_sale == $this->id_point_sale) {
return true ;
if((($order->id_user > 0 && $order->id_user == $this->id_user) ||
(!$order->id_user && $order->username == $this->username)) &&
$order->id_point_sale == $this->id_point_sale) {
return true ;
}
}
}

Laden…
Abbrechen
Speichern