Update subscription.class.php
This commit is contained in:
parent
389b44faa3
commit
7ebf3967cb
@ -104,6 +104,7 @@ class Subscription extends CommonObject
|
|||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."subscription (fk_adherent, fk_type, datec, dateadh, datef, subscription, note)";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."subscription (fk_adherent, fk_type, datec, dateadh, datef, subscription, note)";
|
||||||
|
|
||||||
if ($this->fk_type == NULL) {
|
if ($this->fk_type == NULL) {
|
||||||
require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php';
|
||||||
$member=new Adherent($this->db);
|
$member=new Adherent($this->db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user