mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
cabd8a680e
12
ChangeLog
12
ChangeLog
|
|
@ -229,16 +229,16 @@ The following changes may create regressions for some external modules, but were
|
|||
* More class properties (with old name in french) are now deprecated in favor of the property name in english.
|
||||
* The json emulator dol_json_encode/decode() is removed. The native json PHP module must be enabled/available (this is the case by default with most PHP installation).
|
||||
* The deprecated GET parameter "&sall=" has been removed, use now the "&search_all=".
|
||||
* The experimental and deprecated module WebserviceClient is completely removed (was never released and use deprecated architecture). May be replaced with the stable module Webhook.
|
||||
* The dynamic properties ->no_button_delete, ->no_button_edit, ->no_button_copy for $object Product that could be set by an external module must no more
|
||||
be set (not allowed by PHP 8.2). A module can already return an array with key 'no_button_delete', 'no_button_edit', 'no_button_copy' for same purpose.
|
||||
* The old function dol_bc($var, $moreclass = '') has been removed. If you called it, just stop to call it.
|
||||
* The trigger code CATEGORY_LINK and CATEGORY_UNLINK has been replaced with code CATEGORY_MODIFY. You can read ->context['linkto'] or ->context['unlinkoff' to detect if we want to make a link or unlink.
|
||||
* The experimental and deprecated module WebserviceClient is completely removed (was never released and use deprecated architecture). It may be replaced with the stable module Webhook.
|
||||
* The dynamic properties ->no_button_delete, ->no_button_edit, ->no_button_copy for $object Product that could be set by an external module must no more be
|
||||
set (not allowed by PHP 8.2). A module can already return an array with key 'no_button_delete', 'no_button_edit', 'no_button_copy' for the same purpose.
|
||||
* The old function dol_bc($var, $moreclass = '') has been removed. If you called it, just stop to call it (the function has no effect since a long time).
|
||||
* The trigger code CATEGORY_LINK and CATEGORY_UNLINK have been replaced with code CATEGORY_MODIFY. You can read ->context['linkto'] or ->context['unlinkoff'] to detect if we want to make a link or unlink.
|
||||
* The property ->domiciliation and ->propio on bank accounts has been deprecated and replaced with property ->address and ->owner_name everywhere.
|
||||
* If you were using the substitution key __MEMBER_CIVILITY__, you must now use __MEMBER_TITLE__
|
||||
|
||||
|
||||
***** ChangeLog for 20.0.4 compared to 20.0.2 *****
|
||||
***** ChangeLog for 20.0.4 compared to 20.0.3 *****
|
||||
FIX: $this->origin_object can not be instance of CommandeFournisseur if it is already an instanceof CommonObject
|
||||
FIX: 17.0 API endpoints "PUT": prevent overwriting all extrafields if only some are supplied in the request cf. PR #29237
|
||||
FIX: 17.0 - collisions in cache for dol_getIdFromCode
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ class Commande extends CommonOrder
|
|||
|
||||
/**
|
||||
* Status of the order
|
||||
* @var int
|
||||
* @var int|null
|
||||
*/
|
||||
public $status;
|
||||
|
||||
|
|
|
|||
|
|
@ -767,7 +767,7 @@ class PaymentVarious extends CommonObject
|
|||
*/
|
||||
public function info($id)
|
||||
{
|
||||
$sql = 'SELECT v.rowid, v.datec, v.fk_user_author';
|
||||
$sql = 'SELECT v.rowid, v.datec, v.fk_user_author, fk_user_modif, tms';
|
||||
$sql .= ' FROM '.MAIN_DB_PREFIX.'payment_various as v';
|
||||
$sql .= ' WHERE v.rowid = '.((int) $id);
|
||||
|
||||
|
|
@ -780,6 +780,7 @@ class PaymentVarious extends CommonObject
|
|||
|
||||
$this->id = $obj->rowid;
|
||||
$this->user_creation = $obj->fk_user_author;
|
||||
$this->user_creation_id = $obj->fk_user_author;
|
||||
$this->user_modification_id = $obj->fk_user_modif;
|
||||
$this->date_creation = $this->db->jdate($obj->datec);
|
||||
$this->date_modification = $this->db->jdate($obj->tms);
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ if ($object->id) {
|
|||
$morehtmlref .= '</div>';
|
||||
$linkback = '<a href="'.DOL_URL_ROOT.'/compta/bank/various_payment/list.php?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>';
|
||||
|
||||
$morehtmlstatus = $morehtmlright;
|
||||
$morehtmlstatus = '';
|
||||
dol_banner_tab($object, 'id', $linkback, 1, 'rowid', 'ref', $morehtmlref, '', 0, '', $morehtmlstatus);
|
||||
|
||||
print '<div class="fichecenter">';
|
||||
|
|
|
|||
|
|
@ -2061,7 +2061,7 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon = null, $nopr
|
|||
|
||||
// Complete request and execute it with limit
|
||||
$sql .= $db->order($sortfield_new, $sortorder);
|
||||
if ($limit) {
|
||||
if ($limit) { // @phpstan-ignore-line
|
||||
$sql .= $db->plimit($limit + 1, $offset);
|
||||
}
|
||||
|
||||
|
|
@ -2708,16 +2708,14 @@ function htmlPrintOnlineHeader($mysoc, $langs)
|
|||
print '<header class="center">';
|
||||
|
||||
// Output html code for logo
|
||||
if ($urllogo) {
|
||||
print '<div class="backgreypublicpayment">';
|
||||
print '<div class="logopublicpayment">';
|
||||
print '<img id="dolpaymentlogo" src="'.$urllogo.'">';
|
||||
print '</div>';
|
||||
if (!getDolGlobalString('MAIN_HIDE_POWERED_BY')) {
|
||||
print '<div class="poweredbypublicpayment opacitymedium right"><a class="poweredbyhref" href="https://www.dolibarr.org?utm_medium=website&utm_source=poweredby" target="dolibarr" rel="noopener">'.$langs->trans("PoweredBy").'<br><img class="poweredbyimg" src="'.DOL_URL_ROOT.'/theme/dolibarr_logo.svg" width="80px"></a></div>';
|
||||
}
|
||||
print '</div>';
|
||||
print '<div class="backgreypublicpayment">';
|
||||
print '<div class="logopublicpayment">';
|
||||
print '<img id="dolpaymentlogo" src="'.$urllogo.'">';
|
||||
print '</div>';
|
||||
if (!getDolGlobalString('MAIN_HIDE_POWERED_BY')) {
|
||||
print '<div class="poweredbypublicpayment opacitymedium right"><a class="poweredbyhref" href="https://www.dolibarr.org?utm_medium=website&utm_source=poweredby" target="dolibarr" rel="noopener">'.$langs->trans("PoweredBy").'<br><img class="poweredbyimg" src="'.DOL_URL_ROOT.'/theme/dolibarr_logo.svg" width="80px"></a></div>';
|
||||
}
|
||||
print '</div>';
|
||||
|
||||
if (getDolGlobalString('MEMBER_IMAGE_PUBLIC_REGISTRATION')) {
|
||||
print '<div class="backimagepublicregistration">';
|
||||
|
|
|
|||
|
|
@ -736,15 +736,20 @@ if (!empty($_SESSION["disablemodules"])) {
|
|||
foreach ($disabled_modules as $module) {
|
||||
if ($module) {
|
||||
if (empty($conf->$module)) {
|
||||
$conf->$module = new stdClass(); // To avoid warnings
|
||||
$conf->$module = new stdClass(); // To avoid warnings
|
||||
}
|
||||
$conf->$module->enabled = false;
|
||||
|
||||
$conf->$module->enabled = false; // Old usage
|
||||
unset($conf->modules[$module]);
|
||||
|
||||
foreach ($modulepartkeys as $modulepartkey) {
|
||||
unset($conf->modules_parts[$modulepartkey][$module]);
|
||||
}
|
||||
if ($module == 'fournisseur') { // Special case
|
||||
$conf->supplier_order->enabled = 0;
|
||||
$conf->supplier_invoice->enabled = 0;
|
||||
$conf->supplier_order->enabled = 0; // Old usage
|
||||
$conf->supplier_invoice->enabled = 0; // Old usage
|
||||
unset($conf->modules['supplier_order']);
|
||||
unset($conf->modules['supplier_invoice']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4783,7 +4783,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') { // Edit properties
|
|||
$pagelang = GETPOST('WEBSITE_LANG', 'aZ09');
|
||||
}
|
||||
if (GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09')) {
|
||||
$pageallowedinframes = GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09') ? 1 : 0;
|
||||
$pageallowedinframes = 1;
|
||||
}
|
||||
if (GETPOST('htmlheader', 'none')) { // Must accept tags like '<script>' and '<link>'
|
||||
$pagehtmlheader = GETPOST('htmlheader', 'none');
|
||||
|
|
@ -5115,7 +5115,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') { // Edit properties
|
|||
print $form->textwithpicto('', $htmltext, 1, 'help', 'inline-block', 1, 2, 'tooltipsubstitution');
|
||||
} else {
|
||||
//img_help(($tooltiptrigger != '' ? 2 : 1), $alt)
|
||||
print $form->textwithpicto($langs->trans("PreviewPageContent").' '.img_help(2, $langs->trans("PreviewPageContent")), $htmltext, 1, 'none', 'inline-block', 1, 2, 'tooltipsubstitution');
|
||||
print $form->textwithpicto($showlinktolayout ? '' : ($langs->trans("PreviewPageContent").' '.img_help(2, $langs->trans("PreviewPageContent"))), $htmltext, 1, 'none', 'inline-block', 1, 2, 'tooltipsubstitution');
|
||||
}
|
||||
}
|
||||
print '</td><td>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user