FIX : when fetch_optionnal_by_label in Extrafields with $this->db cannot
work because this->db is never instanciated
This commit is contained in:
parent
9c99cae911
commit
8a36353385
@ -32,6 +32,18 @@
|
||||
abstract class CommonDocGenerator
|
||||
{
|
||||
var $error='';
|
||||
public $db;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param DoliDB $db Database handler
|
||||
*/
|
||||
public function __construct($db) {
|
||||
$this->db = $db;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user