Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0
This commit is contained in:
commit
bbb775bd11
@ -108,8 +108,9 @@ if ($user->rights->adherent->cotisation->creer && $action == 'update' && !$cance
|
|||||||
$object->dateh = dol_mktime(GETPOST('datesubhour', 'int'), GETPOST('datesubmin', 'int'), 0, GETPOST('datesubmonth', 'int'), GETPOST('datesubday', 'int'), GETPOST('datesubyear', 'int'));
|
$object->dateh = dol_mktime(GETPOST('datesubhour', 'int'), GETPOST('datesubmin', 'int'), 0, GETPOST('datesubmonth', 'int'), GETPOST('datesubday', 'int'), GETPOST('datesubyear', 'int'));
|
||||||
$object->datef = dol_mktime(GETPOST('datesubendhour', 'int'), GETPOST('datesubendmin', 'int'), 0, GETPOST('datesubendmonth', 'int'), GETPOST('datesubendday', 'int'), GETPOST('datesubendyear', 'int'));
|
$object->datef = dol_mktime(GETPOST('datesubendhour', 'int'), GETPOST('datesubendmin', 'int'), 0, GETPOST('datesubendmonth', 'int'), GETPOST('datesubendday', 'int'), GETPOST('datesubendyear', 'int'));
|
||||||
$object->fk_type = $typeid;
|
$object->fk_type = $typeid;
|
||||||
$object->note = $note;
|
$object->note_public = $note;
|
||||||
$object->note_private = $note;
|
$object->note_private = $note;
|
||||||
|
|
||||||
$object->amount = $amount;
|
$object->amount = $amount;
|
||||||
|
|
||||||
$result = $object->update($user);
|
$result = $object->update($user);
|
||||||
|
|||||||
@ -65,14 +65,16 @@ if (!empty($conf->global->BARCODE_PRODUCT_ADDON_NUM)) {
|
|||||||
if (preg_match('/^mod_barcode_product_.*php$/', $file)) {
|
if (preg_match('/^mod_barcode_product_.*php$/', $file)) {
|
||||||
$file = substr($file, 0, dol_strlen($file) - 4);
|
$file = substr($file, 0, dol_strlen($file) - 4);
|
||||||
|
|
||||||
try {
|
if ($file == $conf->global->BARCODE_PRODUCT_ADDON_NUM) {
|
||||||
dol_include_once($dirroot.$file.'.php');
|
try {
|
||||||
} catch (Exception $e) {
|
dol_include_once($dirroot.$file.'.php');
|
||||||
dol_syslog($e->getMessage(), LOG_ERR);
|
} catch (Exception $e) {
|
||||||
}
|
dol_syslog($e->getMessage(), LOG_ERR);
|
||||||
|
}
|
||||||
|
|
||||||
$modBarCodeProduct = new $file();
|
$modBarCodeProduct = new $file();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir($handle);
|
closedir($handle);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user