Fix: Widget Fatal Error + Setup Upload-Include verschoben [deploy]
All checks were successful
Deploy mahnung / deploy (push) Successful in 14s
All checks were successful
Deploy mahnung / deploy (push) Successful in 14s
- box_mahnung_offen.php: require_once mahnung.class.php nach oben verschoben, da Mahnung::STATUS_STORNIERT in der SQL-Query vor dem bisherigen Include benutzt wurde - setup.php: actions_setmoduleoptions.inc.php vor llxHeader() verschoben (sonst scheitert der ODT-Upload wegen "headers already sent"), Duplikat entfernt Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
993ac50c0c
commit
7387d3ac1e
2 changed files with 7 additions and 5 deletions
|
|
@ -167,6 +167,12 @@ function loadStufeById($db, $id, $entity)
|
|||
return $s;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// ODT-Upload / Template-Loeschen (actions_setmoduleoptions.inc.php)
|
||||
// Muss vor llxHeader() stehen, da es header()-Redirects macht.
|
||||
// ---------------------------------------------------------------
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// Dokumentenmodell-Aktionen (vor View, da header()-Redirect)
|
||||
// ---------------------------------------------------------------
|
||||
|
|
@ -313,9 +319,6 @@ print '</form>';
|
|||
print '<br><br>';
|
||||
print load_fiche_titre($langs->trans('MahnungDokumentModelle'), '<a href="templatevars.php" class="button smallpaddingimp">Verfuegbare Template-Variablen</a>', '');
|
||||
|
||||
// Aktionen fuer Dokumentenmodelle (Upload, Loeschen, setModuleOptions)
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
|
||||
|
||||
// Dokumentenmodelle auflisten
|
||||
$def = array();
|
||||
$sql = "SELECT nom FROM ".MAIN_DB_PREFIX."document_model WHERE type = 'mahnung' AND entity = ".((int) $conf->entity);
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
require_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/custom/mahnung/class/mahnung.class.php';
|
||||
|
||||
/**
|
||||
* Widget: Offene Kundenrechnungen mit aktueller Mahnstufe.
|
||||
|
|
@ -97,8 +98,6 @@ class box_mahnung_offen extends ModeleBoxes
|
|||
$sql .= " ORDER BY f.date_lim_reglement ASC, f.ref ASC";
|
||||
$sql .= $this->db->plimit($this->max + 1, 0);
|
||||
|
||||
require_once DOL_DOCUMENT_ROOT.'/custom/mahnung/class/mahnung.class.php';
|
||||
|
||||
$result = $this->db->query($sql);
|
||||
if (!$result) {
|
||||
$this->info_box_contents[0][0] = array(
|
||||
|
|
|
|||
Loading…
Reference in a new issue