Skip to content

Commit a209e83

Browse files
committed
fix: allegati in fe
1 parent 8eb1ea1 commit a209e83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/exportFE/src/FatturaElettronica.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ protected static function getAllegati($fattura)
17251725
// Inclusione
17261726
foreach ($allegati as $allegato) {
17271727
$categoria = database()->fetchOne('SELECT `name` FROM `zz_files_categories` WHERE `id` = '.prepare($allegato['id_category']))['name'];
1728-
if ($categoria == 'Allegati Fattura Elettronica') {
1728+
if (strcasecmp($categoria, 'Allegati Fattura Elettronica') === 0) {
17291729
$file = base_dir().'/'.$directory.'/'.$allegato['filename'];
17301730

17311731
$attachments[] = [

0 commit comments

Comments
 (0)