Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
4da19f6e0b
@ -144,7 +144,7 @@ if ($action == 'add' && !empty($permissiontoadd)) {
|
|||||||
$urltogo = $backtopage ? str_replace('__ID__', $result, $backtopage) : $backurlforlist;
|
$urltogo = $backtopage ? str_replace('__ID__', $result, $backtopage) : $backurlforlist;
|
||||||
$urltogo = preg_replace('/--IDFORBACKTOPAGE--/', $object->id, $urltogo); // New method to autoselect project after a New on another form object creation
|
$urltogo = preg_replace('/--IDFORBACKTOPAGE--/', $object->id, $urltogo); // New method to autoselect project after a New on another form object creation
|
||||||
|
|
||||||
if (!empty($noback)) {
|
if (empty($noback)) {
|
||||||
header("Location: " . $urltogo);
|
header("Location: " . $urltogo);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@ -320,7 +320,7 @@ if ($action == 'confirm_delete' && !empty($permissiontodelete)) {
|
|||||||
// Delete OK
|
// Delete OK
|
||||||
setEventMessages("RecordDeleted", null, 'mesgs');
|
setEventMessages("RecordDeleted", null, 'mesgs');
|
||||||
|
|
||||||
if (!empty($noback)) {
|
if (empty($noback)) {
|
||||||
header("Location: " . $backurlforlist);
|
header("Location: " . $backurlforlist);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@ -366,7 +366,7 @@ if ($action == 'confirm_deleteline' && $confirm == 'yes' && !empty($permissionto
|
|||||||
|
|
||||||
setEventMessages($langs->trans('RecordDeleted'), null, 'mesgs');
|
setEventMessages($langs->trans('RecordDeleted'), null, 'mesgs');
|
||||||
|
|
||||||
if (!empty($noback)) {
|
if (empty($noback)) {
|
||||||
header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $object->id);
|
header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $object->id);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@ -507,7 +507,7 @@ if ($action == 'confirm_clone' && $confirm == 'yes' && !empty($permissiontoadd))
|
|||||||
$newid = $result;
|
$newid = $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($noback)) {
|
if (empty($noback)) {
|
||||||
header("Location: " . $_SERVER['PHP_SELF'] . '?id=' . $newid); // Open record of new object
|
header("Location: " . $_SERVER['PHP_SELF'] . '?id=' . $newid); // Open record of new object
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1214,7 +1214,7 @@ class FormTicket
|
|||||||
dol_delete_dir_recursive($upload_dir);
|
dol_delete_dir_recursive($upload_dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
$keytoavoidconflict = empty($this->trackid) ? '' : '-'.$this->trackid; // this->trackid must be defined
|
$keytoavoidconflict = empty($this->track_id) ? '' : '-'.$this->track_id; // track_id instead of trackid
|
||||||
unset($_SESSION["listofpaths".$keytoavoidconflict]);
|
unset($_SESSION["listofpaths".$keytoavoidconflict]);
|
||||||
unset($_SESSION["listofnames".$keytoavoidconflict]);
|
unset($_SESSION["listofnames".$keytoavoidconflict]);
|
||||||
unset($_SESSION["listofmimes".$keytoavoidconflict]);
|
unset($_SESSION["listofmimes".$keytoavoidconflict]);
|
||||||
@ -1272,7 +1272,7 @@ class FormTicket
|
|||||||
$listofpaths = array();
|
$listofpaths = array();
|
||||||
$listofnames = array();
|
$listofnames = array();
|
||||||
$listofmimes = array();
|
$listofmimes = array();
|
||||||
$keytoavoidconflict = empty($this->trackid) ? '' : '-'.$this->trackid; // this->trackid must be defined
|
$keytoavoidconflict = empty($this->track_id) ? '' : '-'.$this->track_id; // track_id instead of trackid
|
||||||
|
|
||||||
if (GETPOST('mode', 'alpha') == 'init' || (GETPOST('modelmailselected', 'alpha') && GETPOST('modelmailselected', 'alpha') != '-1')) {
|
if (GETPOST('mode', 'alpha') == 'init' || (GETPOST('modelmailselected', 'alpha') && GETPOST('modelmailselected', 'alpha') != '-1')) {
|
||||||
if (!empty($arraydefaultmessage->joinfiles) && is_array($this->param['fileinit'])) {
|
if (!empty($arraydefaultmessage->joinfiles) && is_array($this->param['fileinit'])) {
|
||||||
|
|||||||
@ -473,7 +473,6 @@ class SupplierInvoices extends DolibarrApi
|
|||||||
$paiement->multicurrency_amounts = $multicurrency_amounts; // Array with all payments dispatching
|
$paiement->multicurrency_amounts = $multicurrency_amounts; // Array with all payments dispatching
|
||||||
$paiement->paiementid = $payment_mode_id;
|
$paiement->paiementid = $payment_mode_id;
|
||||||
$paiement->paiementcode = dol_getIdFromCode($this->db, $payment_mode_id, 'c_paiement', 'id', 'code', 1);
|
$paiement->paiementcode = dol_getIdFromCode($this->db, $payment_mode_id, 'c_paiement', 'id', 'code', 1);
|
||||||
$paiement->oper = $paiement->paiementcode; // For backward compatibility
|
|
||||||
$paiement->num_payment = $num_payment;
|
$paiement->num_payment = $num_payment;
|
||||||
$paiement->note_public = $comment;
|
$paiement->note_public = $comment;
|
||||||
|
|
||||||
|
|||||||
@ -135,7 +135,7 @@ if (empty($reshook)) {
|
|||||||
|
|
||||||
//Create MO with Childs
|
//Create MO with Childs
|
||||||
if ($action == 'add' && empty($id) && !empty($TBomLineId)) {
|
if ($action == 'add' && empty($id) && !empty($TBomLineId)) {
|
||||||
$noback = 0;
|
$noback = 1;
|
||||||
include DOL_DOCUMENT_ROOT.'/core/actions_addupdatedelete.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/actions_addupdatedelete.inc.php';
|
||||||
|
|
||||||
$mo_parent = $object;
|
$mo_parent = $object;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user