Bug fixes
This commit is contained in:
@@ -132,7 +132,11 @@ abstract class Catalog extends Model
|
||||
return $query->where(function($query)
|
||||
{
|
||||
$query->where('duplicate','<>',TRUE)
|
||||
->orWhere('duplicate','=',NULL);
|
||||
->orWhere('duplicate','=',NULL)
|
||||
->orWhere(function($q) {
|
||||
$q->where('duplicate','=',TRUE)
|
||||
->where('ignore_duplicate','=',TRUE);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -490,7 +494,7 @@ abstract class Catalog extends Model
|
||||
|
||||
public function setDateCreated()
|
||||
{
|
||||
$this->created = $this->property('creationdate');
|
||||
$this->created = $this->property('creationdate') ?: NULL;
|
||||
}
|
||||
|
||||
public function setHeightWidth()
|
||||
|
Reference in New Issue
Block a user