mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-23 06:47:40 +01:00
Compare commits
No commits in common. "06eb5f916a66c79cd25ca9969489993fa5f08e53" and "d0f2746d01a41dfc85df11c2eac82cbc728552b0" have entirely different histories.
06eb5f916a
...
d0f2746d01
@ -116,7 +116,7 @@ function start_datatables() {
|
|||||||
} else {
|
} else {
|
||||||
$('#mini-loader').hide();
|
$('#mini-loader').hide();
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -358,9 +358,6 @@ echo '
|
|||||||
url: globals.rootdir + "/add.php?id_module='.$modulo_interventi->id.'",
|
url: globals.rootdir + "/add.php?id_module='.$modulo_interventi->id.'",
|
||||||
},
|
},
|
||||||
error: "'.tr('Errore durante la creazione degli eventi').'",
|
error: "'.tr('Errore durante la creazione degli eventi').'",
|
||||||
genericError: "'.tr('Errore').'",
|
|
||||||
genericWarning: "'.tr('Attenzione').'",
|
|
||||||
informazioni_aggiuntive: '.intval(setting('Visualizza informazioni aggiuntive sul calendario')).',
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function aggiorna_contatore(counter_id) {
|
function aggiorna_contatore(counter_id) {
|
||||||
@ -411,7 +408,7 @@ echo '
|
|||||||
$("#elenco-promemoria").html(data);
|
$("#elenco-promemoria").html(data);
|
||||||
|
|
||||||
$("#external-events .fc-event").each(function () {
|
$("#external-events .fc-event").each(function () {
|
||||||
$(this).draggable({
|
$(this).draggable({
|
||||||
zIndex: 999,
|
zIndex: 999,
|
||||||
revert: true,
|
revert: true,
|
||||||
revertDuration: 0,
|
revertDuration: 0,
|
||||||
@ -510,7 +507,7 @@ echo '
|
|||||||
header: {
|
header: {
|
||||||
left: "prev,next today",
|
left: "prev,next today",
|
||||||
center: "title",
|
center: "title",
|
||||||
right: "month,agendaWeek,agendaDay"
|
right: "month,agendaWeek,agendaDay"
|
||||||
},
|
},
|
||||||
timeFormat: globals.dashboard.timeFormat,
|
timeFormat: globals.dashboard.timeFormat,
|
||||||
slotLabelFormat: globals.dashboard.timeFormat,
|
slotLabelFormat: globals.dashboard.timeFormat,
|
||||||
@ -521,7 +518,7 @@ echo '
|
|||||||
lazyFetching: true,
|
lazyFetching: true,
|
||||||
selectMirror: true,
|
selectMirror: true,
|
||||||
eventLimit: false, // allow "more" link when too many events
|
eventLimit: false, // allow "more" link when too many events
|
||||||
allDaySlot: globals.dashboard.informazioni_aggiuntive,
|
allDaySlot: '.intval(setting('Visualizza informazioni aggiuntive sul calendario')).',
|
||||||
|
|
||||||
loading: function (isLoading, view) {
|
loading: function (isLoading, view) {
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
@ -559,12 +556,13 @@ echo '
|
|||||||
},
|
},
|
||||||
|
|
||||||
selectable: globals.dashboard.write_permission,
|
selectable: globals.dashboard.write_permission,
|
||||||
select: function (start, end, allDay) { // info
|
select: function(start, end, allDay) { // info
|
||||||
// let start = info.start;
|
// let start = info.start;
|
||||||
// let end = info.end;
|
// let end = info.end;
|
||||||
|
|
||||||
let intero_giorno = !start.hasTime() && !end.hasTime();
|
let is_allDay = !start.hasTime() && !end.hasTime();
|
||||||
if (intero_giorno !== true) {
|
|
||||||
|
if (is_allDay!==true){
|
||||||
let data = moment(start).format("YYYY-MM-DD");
|
let data = moment(start).format("YYYY-MM-DD");
|
||||||
let data_fine = moment(end).format("YYYY-MM-DD");
|
let data_fine = moment(end).format("YYYY-MM-DD");
|
||||||
let orario_inizio = moment(start).format("HH:mm");
|
let orario_inizio = moment(start).format("HH:mm");
|
||||||
@ -580,35 +578,35 @@ echo '
|
|||||||
},
|
},
|
||||||
|
|
||||||
editable: globals.dashboard.write_permission,
|
editable: globals.dashboard.write_permission,
|
||||||
eventDrop: function (event, delta, revertFunc) {// info
|
eventDrop: function(event, delta, revertFunc ) {// info
|
||||||
// let event = info.event;
|
// let event = info.event;
|
||||||
|
|
||||||
if (event.allDay !== true) {
|
if (event.allDay!==true){
|
||||||
$.post(globals.dashboard.load_url, {
|
$.post(globals.dashboard.load_url, {
|
||||||
op: "modifica_intervento",
|
op: "modifica_intervento",
|
||||||
id: event.id,
|
id: event.id,
|
||||||
idintervento: event.idintervento,
|
idintervento: event.idintervento,
|
||||||
timeStart: moment(event.start).format("YYYY-MM-DD HH:mm"),
|
timeStart: moment(event.start).format("YYYY-MM-DD HH:mm"),
|
||||||
timeEnd: moment(event.end).format("YYYY-MM-DD HH:mm")
|
timeEnd: moment(event.end).format("YYYY-MM-DD HH:mm")
|
||||||
}, function (data, responseType) {
|
}, function (data, response) {
|
||||||
data = $.trim(data);
|
data = $.trim(data);
|
||||||
|
|
||||||
if (responseType === "success" && data !== "ok") {
|
if (response == "success" && data !== "ok") {
|
||||||
swal(globals.dashboard.genericWarning, data, "warning");
|
swal("'.tr('Attenzione').'", data, "warning");
|
||||||
} else if (responseType !== "success") {
|
}else if (response !== "success"){
|
||||||
swal(globals.dashboard.genericError, data, "error");
|
swal("'.tr('Errore').'", data, "error");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data !== "ok") {
|
if (data !=="ok"){
|
||||||
revertFunc(); // info.revert();
|
revertFunc(); // info.revert();
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
} else {
|
}else{
|
||||||
revertFunc();
|
revertFunc();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
eventResize: function (event, delta, revertFunc) { // info
|
eventResize: function(event, delta, revertFunc) { // info
|
||||||
// let event = info.event;
|
// let event = info.event;
|
||||||
|
|
||||||
$.post(globals.dashboard.load_url, {
|
$.post(globals.dashboard.load_url, {
|
||||||
@ -617,16 +615,16 @@ echo '
|
|||||||
idintervento: event.idintervento,
|
idintervento: event.idintervento,
|
||||||
timeStart: moment(event.start).format("YYYY-MM-DD HH:mm"),
|
timeStart: moment(event.start).format("YYYY-MM-DD HH:mm"),
|
||||||
timeEnd: moment(event.end).format("YYYY-MM-DD HH:mm")
|
timeEnd: moment(event.end).format("YYYY-MM-DD HH:mm")
|
||||||
}, function (data, responseType) {
|
}, function (data, response) {
|
||||||
data = $.trim(data);
|
data = $.trim(data);
|
||||||
|
|
||||||
if (responseType === "success" && data !== "ok") {
|
if (response == "success" && data !== "ok") {
|
||||||
swal(globals.dashboard.genericWarning, data, "warning");
|
swal("'.tr('Attenzione').'", data, "warning");
|
||||||
} else if (responseType !== "success") {
|
}else if (response !== "success"){
|
||||||
swal(globals.dashboard.genericError, data, "error");
|
swal("'.tr('Errore').'", data, "error");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data !== "ok") {
|
if (data !=="ok"){
|
||||||
revertFunc(); // info.revert();
|
revertFunc(); // info.revert();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -634,7 +632,7 @@ echo '
|
|||||||
},
|
},
|
||||||
|
|
||||||
// eventPositioned: function (info) {
|
// eventPositioned: function (info) {
|
||||||
eventAfterRender: function (event, element) {
|
eventAfterRender: function(event, element) {
|
||||||
// let event = info.event;
|
// let event = info.event;
|
||||||
// let element = $(info.el);
|
// let element = $(info.el);
|
||||||
element.find(".fc-title").html(event.title);
|
element.find(".fc-title").html(event.title);
|
||||||
@ -642,7 +640,7 @@ echo '
|
|||||||
|
|
||||||
if (globals.dashboard.tooltip == 1) {
|
if (globals.dashboard.tooltip == 1) {
|
||||||
element.tooltipster({
|
element.tooltipster({
|
||||||
content: globals.translations.loading + "...",
|
content: "'.tr('Caricamento...').'",
|
||||||
animation: "grow",
|
animation: "grow",
|
||||||
updateAnimation: "grow",
|
updateAnimation: "grow",
|
||||||
contentAsHTML: true,
|
contentAsHTML: true,
|
||||||
@ -654,11 +652,11 @@ echo '
|
|||||||
touchDevices: true,
|
touchDevices: true,
|
||||||
trigger: "hover",
|
trigger: "hover",
|
||||||
position: "left",
|
position: "left",
|
||||||
functionBefore: function (instance, helper) {
|
functionBefore: function(instance, helper) {
|
||||||
let $origin = $(helper.origin);
|
let $origin = $(helper.origin);
|
||||||
|
|
||||||
if ($origin.data("loaded") !== true) {
|
if ($origin.data("loaded") !== true) {
|
||||||
$.post(globals.dashboard.load_url, {
|
$.post(globals.dashboard.load_url, {
|
||||||
op: "tooltip_info",
|
op: "tooltip_info",
|
||||||
id_record: id_record,
|
id_record: id_record,
|
||||||
allDay: event.allDay,
|
allDay: event.allDay,
|
||||||
@ -676,7 +674,7 @@ echo '
|
|||||||
url: globals.dashboard.load_url + "&op=interventi_periodo",
|
url: globals.dashboard.load_url + "&op=interventi_periodo",
|
||||||
type: "GET",
|
type: "GET",
|
||||||
error: function () {
|
error: function () {
|
||||||
swal(globals.dashboard.genericError, globals.dashboard.error, "error");
|
swal("'.tr('Errore').'", globals.dashboard.error, "error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -67,7 +67,7 @@ class EmailHook extends Manager
|
|||||||
|
|
||||||
// Selezione email per account
|
// Selezione email per account
|
||||||
$accounts = Account::all();
|
$accounts = Account::all();
|
||||||
$lista = collect();
|
$lista = [];
|
||||||
foreach ($accounts as $account) {
|
foreach ($accounts as $account) {
|
||||||
// Ultima email inviata per l'account
|
// Ultima email inviata per l'account
|
||||||
$last_mail = $account->emails()
|
$last_mail = $account->emails()
|
||||||
@ -90,7 +90,9 @@ class EmailHook extends Manager
|
|||||||
->take($numero_email)
|
->take($numero_email)
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
$lista = $lista->concat($lista_account);
|
if (!empty($lista_account)) {
|
||||||
|
$lista = array_merge($lista, $lista_account);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,10 +170,7 @@ class OAuth2
|
|||||||
public function updateTokens($access_token, $refresh_token)
|
public function updateTokens($access_token, $refresh_token)
|
||||||
{
|
{
|
||||||
$this->account->access_token = serialize($access_token);
|
$this->account->access_token = serialize($access_token);
|
||||||
|
$this->account->refresh_token = $refresh_token;
|
||||||
$previous_refresh_token = $this->account->refresh_token;
|
|
||||||
$this->account->refresh_token = $refresh_token ?: $previous_refresh_token;
|
|
||||||
|
|
||||||
$this->account->save();
|
$this->account->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ class Sessione extends Model
|
|||||||
public static function build(Intervento $intervento, Anagrafica $anagrafica, $inizio, $fine)
|
public static function build(Intervento $intervento, Anagrafica $anagrafica, $inizio, $fine)
|
||||||
{
|
{
|
||||||
if (!$anagrafica->isTipo('Tecnico')) {
|
if (!$anagrafica->isTipo('Tecnico')) {
|
||||||
throw new InvalidArgumentException('Anagrafica di tipo diverso da Tecnico');
|
throw new InvalidArgumentException("Anagrafica di tipo diverso da Tecnico");
|
||||||
}
|
}
|
||||||
|
|
||||||
$model = new static();
|
$model = new static();
|
||||||
|
@ -141,7 +141,7 @@ $(document).ready(function() {
|
|||||||
senza_consenso.hide();
|
senza_consenso.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
const table = $("#destinatari").DataTable({
|
$("#destinatari").DataTable({
|
||||||
language: globals.translations.datatables,
|
language: globals.translations.datatables,
|
||||||
retrieve: true,
|
retrieve: true,
|
||||||
ordering: false,
|
ordering: false,
|
||||||
@ -159,13 +159,5 @@ $(document).ready(function() {
|
|||||||
searchDelay: 500,
|
searchDelay: 500,
|
||||||
pageLength: 50,
|
pageLength: 50,
|
||||||
});
|
});
|
||||||
|
|
||||||
table.on("processing.dt", function (e, settings, processing) {
|
|
||||||
if (processing) {
|
|
||||||
$("#mini-loader").show();
|
|
||||||
} else {
|
|
||||||
$("#mini-loader").hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
</script>';
|
</script>';
|
||||||
|
@ -24,7 +24,6 @@ use Modules\Emails\Mail;
|
|||||||
use Modules\Emails\Template;
|
use Modules\Emails\Template;
|
||||||
use Modules\ListeNewsletter\Lista;
|
use Modules\ListeNewsletter\Lista;
|
||||||
use Modules\Newsletter\Newsletter;
|
use Modules\Newsletter\Newsletter;
|
||||||
use Respect\Validation\Validator as v;
|
|
||||||
|
|
||||||
include_once __DIR__.'/../../core.php';
|
include_once __DIR__.'/../../core.php';
|
||||||
|
|
||||||
@ -65,16 +64,10 @@ switch (filter('op')) {
|
|||||||
$uploads = $newsletter->uploads()->pluck('id');
|
$uploads = $newsletter->uploads()->pluck('id');
|
||||||
|
|
||||||
$destinatari = $newsletter->destinatari();
|
$destinatari = $newsletter->destinatari();
|
||||||
$count = $destinatari->count();
|
foreach ($destinatari as $destinatario) {
|
||||||
for ($i = 0; $i < $count; $i++) {
|
$anagrafica = $destinatario instanceof Anagrafica ? $destinatario : $destinatario->anagrafica;
|
||||||
$destinatario = $destinatari->skip($i)->first();
|
|
||||||
$origine = $destinatario->getOrigine();
|
|
||||||
|
|
||||||
$anagrafica = $origine instanceof Anagrafica ? $origine : $origine->anagrafica;
|
|
||||||
|
|
||||||
$abilita_newsletter = $anagrafica->enable_newsletter;
|
$abilita_newsletter = $anagrafica->enable_newsletter;
|
||||||
$email = $destinatario->email;
|
if (empty($destinatario->email) || empty($abilita_newsletter)) {
|
||||||
if (empty($email) || empty($abilita_newsletter) || !v::email()->validate($email)) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,7 +75,7 @@ switch (filter('op')) {
|
|||||||
$mail = Mail::build($user, $template, $anagrafica->id);
|
$mail = Mail::build($user, $template, $anagrafica->id);
|
||||||
|
|
||||||
// Completamento informazioni
|
// Completamento informazioni
|
||||||
$mail->addReceiver($email);
|
$mail->addReceiver($destinatario->email);
|
||||||
$mail->subject = $newsletter->subject;
|
$mail->subject = $newsletter->subject;
|
||||||
$mail->content = $newsletter->content;
|
$mail->content = $newsletter->content;
|
||||||
$mail->id_newsletter = $newsletter->id;
|
$mail->id_newsletter = $newsletter->id;
|
||||||
@ -95,8 +88,13 @@ switch (filter('op')) {
|
|||||||
$mail->save();
|
$mail->save();
|
||||||
|
|
||||||
// Aggiornamento riferimento per la newsletter
|
// Aggiornamento riferimento per la newsletter
|
||||||
$destinatario->id_email = $mail->id;
|
$database->update('em_newsletter_receiver', [
|
||||||
$destinatario->save();
|
'id_email' => $mail->id,
|
||||||
|
], [
|
||||||
|
'record_type' => get_class($destinatario),
|
||||||
|
'record_id' => $destinatario->id,
|
||||||
|
'id_newsletter' => $newsletter->id,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Aggiornamento stato newsletter
|
// Aggiornamento stato newsletter
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Models\Module;
|
|
||||||
use Modules\Anagrafiche\Anagrafica;
|
use Modules\Anagrafiche\Anagrafica;
|
||||||
use Modules\Anagrafiche\Referente;
|
use Modules\Anagrafiche\Referente;
|
||||||
use Modules\Anagrafiche\Sede;
|
use Modules\Anagrafiche\Sede;
|
||||||
@ -57,7 +56,6 @@ $destinatari_filtrati = (clone $destinatari)
|
|||||||
->skip($start)->take($length)
|
->skip($start)->take($length)
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
$modulo_anagrafiche = Module::pool('Anagrafiche');
|
|
||||||
$righe = [];
|
$righe = [];
|
||||||
foreach ($destinatari_filtrati as $destinatario) {
|
foreach ($destinatari_filtrati as $destinatario) {
|
||||||
$origine = $destinatario->getOrigine();
|
$origine = $destinatario->getOrigine();
|
||||||
@ -86,7 +84,7 @@ foreach ($destinatari_filtrati as $destinatario) {
|
|||||||
'readonly' => '1',
|
'readonly' => '1',
|
||||||
'class' => 'email-mask',
|
'class' => 'email-mask',
|
||||||
'value' => $origine->email,
|
'value' => $origine->email,
|
||||||
'validation' => 'email|'.$modulo_anagrafiche->id.'|'.$destinatario->record_id,
|
'validation' => 'email',
|
||||||
]) :
|
]) :
|
||||||
'<span class="text-danger"><i class="fa fa-close"></i> '.tr('Indirizzo e-mail mancante').'</span>'
|
'<span class="text-danger"><i class="fa fa-close"></i> '.tr('Indirizzo e-mail mancante').'</span>'
|
||||||
).'
|
).'
|
||||||
|
@ -213,7 +213,7 @@ $(document).ready(function() {
|
|||||||
senza_consenso.hide();
|
senza_consenso.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
const table = $("#destinatari").DataTable({
|
$("#destinatari").DataTable({
|
||||||
language: globals.translations.datatables,
|
language: globals.translations.datatables,
|
||||||
retrieve: true,
|
retrieve: true,
|
||||||
ordering: false,
|
ordering: false,
|
||||||
@ -231,13 +231,5 @@ $(document).ready(function() {
|
|||||||
searchDelay: 500,
|
searchDelay: 500,
|
||||||
pageLength: 50,
|
pageLength: 50,
|
||||||
});
|
});
|
||||||
|
|
||||||
table.on("processing.dt", function (e, settings, processing) {
|
|
||||||
if (processing) {
|
|
||||||
$("#mini-loader").show();
|
|
||||||
} else {
|
|
||||||
$("#mini-loader").hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
</script>';
|
</script>';
|
||||||
|
@ -121,7 +121,7 @@ echo '
|
|||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<span class="label label-warning pull-right hidden" id="guida-configurazione"></span>
|
<span class="label label-warning pull-right hidden" id="guida-configurazione"></span>
|
||||||
{[ "type": "select", "label": "'.tr('Provider account').'", "name": "provider", "value": "$provider$", "values": '.json_encode($elenco_provider).', "disabled": "'.intval(empty($account->provider)).'" ]}
|
{[ "type": "select", "label": "'.tr('Provider account').'", "name": "provider", "value": "$provider$", "values": '.json_encode($elenco_provider).', "disabled": "'.intval(empty($account->provider)).'" ]}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -143,10 +143,6 @@ echo '
|
|||||||
{[ "type": "text", "label": "'.tr('Client Secret').'", "name": "client_secret", "value": "$client_secret$", "disabled": "'.intval(empty($account->provider)).'" ]}
|
{[ "type": "text", "label": "'.tr('Client Secret').'", "name": "client_secret", "value": "$client_secret$", "disabled": "'.intval(empty($account->provider)).'" ]}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert alert-info">
|
|
||||||
<i class="fa fa-info-circle"></i> '.tr('Durante la procedura di configurazione verrà effettuato il logout dal gestionale').'.
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -27,7 +27,7 @@ use Notifications\EmailNotification;
|
|||||||
|
|
||||||
class SegnalazioneBug extends Resource implements RetrieveInterface, CreateInterface
|
class SegnalazioneBug extends Resource implements RetrieveInterface, CreateInterface
|
||||||
{
|
{
|
||||||
protected static $bug_email = 'thomaszilio77@gmail.com';
|
protected static $bug_email = 'info@openstamanager.com';
|
||||||
|
|
||||||
public function retrieve($request)
|
public function retrieve($request)
|
||||||
{
|
{
|
||||||
@ -44,7 +44,6 @@ class SegnalazioneBug extends Resource implements RetrieveInterface, CreateInter
|
|||||||
|
|
||||||
public function create($request)
|
public function create($request)
|
||||||
{
|
{
|
||||||
$data = $request['data'];
|
|
||||||
$account = Account::where('predefined', true)->first();
|
$account = Account::where('predefined', true)->first();
|
||||||
|
|
||||||
// Preparazione email
|
// Preparazione email
|
||||||
@ -53,9 +52,19 @@ class SegnalazioneBug extends Resource implements RetrieveInterface, CreateInter
|
|||||||
// Destinatario
|
// Destinatario
|
||||||
$mail->AddAddress(self::$bug_email);
|
$mail->AddAddress(self::$bug_email);
|
||||||
|
|
||||||
// Oggetto e contenuto
|
// Oggetto
|
||||||
$mail->Subject = 'Segnalazione bug App OSM '.$data['version'];
|
$mail->subject = 'Segnalazione bug App OSM '.$request['version'];
|
||||||
$mail->Body = $data['body'];
|
|
||||||
|
$infos = [
|
||||||
|
];
|
||||||
|
|
||||||
|
$body = '';
|
||||||
|
foreach ($infos as $key => $value) {
|
||||||
|
$body .= '<p>'.$key.': '.$value.'</p>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Contenuti
|
||||||
|
$mail->content = $body;
|
||||||
|
|
||||||
// Tentativo di invio diretto
|
// Tentativo di invio diretto
|
||||||
$email_success = $mail->send();
|
$email_success = $mail->send();
|
||||||
|
@ -37,7 +37,7 @@ class EmailNotification extends PHPMailer implements NotificationInterface
|
|||||||
|
|
||||||
public function __construct($account = null, $exceptions = null)
|
public function __construct($account = null, $exceptions = null)
|
||||||
{
|
{
|
||||||
parent::__construct($exceptions);
|
parent::__construct(true);
|
||||||
|
|
||||||
$this->CharSet = 'UTF-8';
|
$this->CharSet = 'UTF-8';
|
||||||
|
|
||||||
@ -215,6 +215,7 @@ class EmailNotification extends PHPMailer implements NotificationInterface
|
|||||||
// Segnalazione degli errori
|
// Segnalazione degli errori
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
$logger = logger();
|
$logger = logger();
|
||||||
|
dd($this->infos);
|
||||||
foreach ($this->infos as $info) {
|
foreach ($this->infos as $info) {
|
||||||
$logger->addRecord(\Monolog\Logger::ERROR, $info);
|
$logger->addRecord(\Monolog\Logger::ERROR, $info);
|
||||||
}
|
}
|
||||||
|
@ -183,12 +183,12 @@ class Prints
|
|||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self::isCompletelyCustom($print)) {
|
if (self::isOldStandard($print)) {
|
||||||
return self::customLoader($infos['id'], $id_record, $directory, $return_string);
|
|
||||||
} elseif (self::isOldStandard($print)) {
|
|
||||||
return self::oldLoader($infos['id'], $id_record, $directory, $return_string);
|
return self::oldLoader($infos['id'], $id_record, $directory, $return_string);
|
||||||
} else {
|
} elseif (!self::isCompletelyCustom($print)) {
|
||||||
return self::loader($infos['id'], $id_record, $directory, $return_string);
|
return self::loader($infos['id'], $id_record, $directory, $return_string);
|
||||||
|
} else {
|
||||||
|
return self::customLoader($infos['id'], $id_record, $directory, $return_string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user