Browse Source

Merge branch 'dev'

master
Guillaume Bourgeois 5 years ago
parent
commit
5aae49e16a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      common/models/Subscription.php

+ 2
- 1
common/models/Subscription.php View File

public static function addAll($date, $force = false) public static function addAll($date, $force = false)
{ {
$distribution = Distribution::searchOne([ $distribution = Distribution::searchOne([
'date' => date('Y-m-d', strtotime($date))
'date' => date('Y-m-d', strtotime($date)),
'id_producer' => Producer::getId(),
]) ; ]) ;


if ($distribution) { if ($distribution) {

Loading…
Cancel
Save