FIX Travis avoid error "you should use $this->db-> inside a class file"
This commit is contained in:
parent
a1dc6e7e9b
commit
b07fff5754
@ -114,7 +114,7 @@ class InfoBox
|
||||
$sql .= " ORDER BY b.box_order";
|
||||
} else { // available
|
||||
$sql = "SELECT d.rowid as box_id, d.file, d.note, d.tms";
|
||||
$sql .= " FROM ".$this->db->prefix()."boxes_def as d";
|
||||
$sql .= " FROM ".$db->prefix()."boxes_def as d";
|
||||
$sql .= " WHERE d.entity IN (0, ".$conf->entity.")";
|
||||
}
|
||||
|
||||
|
||||
@ -213,6 +213,7 @@ class CodingPhpTest extends PHPUnit\Framework\TestCase
|
||||
'multicurrency.class.php',
|
||||
'productbatch.class.php',
|
||||
'reception.class.php',
|
||||
'infobox.class.php',
|
||||
))) {
|
||||
// Must not find $db->
|
||||
$ok=true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user