FIX Upload of documents for members using the REST API.

This commit is contained in:
Xebax 2020-06-14 14:42:54 +02:00
parent b763b40d8c
commit a22c89da96

View File

@ -608,6 +608,12 @@ class Documents extends DolibarrApi
require_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport.class.php';
$object = new ExpenseReport($this->db);
}
else if ($modulepart == 'adherent' || $modulepart == 'member')
{
$modulepart='adherent';
require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
$object = new Adherent($this->db);
}
// TODO Implement additional moduleparts
else
{