1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-23 14:57:46 +01:00

Fix classe liste newsletter

This commit is contained in:
MatteoPistorello 2022-02-11 10:36:57 +01:00
parent 8befa7683f
commit dba45f7264
2 changed files with 20 additions and 3 deletions

View File

@ -1,7 +1,25 @@
<?php
/*
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
* Copyright (C) DevCode s.r.l.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
include_once __DIR__.'/../../core.php';
use Modules\Newsletter\Lista;
use Modules\ListeNewsletter\Lista;
switch (post('op')) {
case 'aggiorna-liste':

View File

@ -26,7 +26,6 @@ use Modules\ListeNewsletter\Lista;
use Modules\Newsletter\Newsletter;
use Notifications\EmailNotification;
use PHPMailer\PHPMailer\Exception;
use Modules\Newsletter\Lista as ListaNewsletter;
include_once __DIR__.'/../../core.php';
@ -178,7 +177,7 @@ switch (filter('op')) {
if (!empty($id_list)) {
//Aggiornamento della lista
$lista = ListaNewsletter::find($id_list);
$lista = Lista::find($id_list);
$query = $lista->query;
if (check_query($query)) {
$lista->query = html_entity_decode($query);