Skip to content

Commit

Permalink
fix in recupero template importazione listino
Browse files Browse the repository at this point in the history
  • Loading branch information
madbob committed Dec 1, 2024
1 parent 1c9298b commit ef3fa67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/app/Http/Controllers/GasController.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ private function configMails($gas, $request)
]);

foreach(array_keys(systemParameters('MailTypes')) as $identifier) {
if ($request->has("custom_mails_${identifier}_subject")) {
$gas->setConfig("mail_${identifier}", (object) [
if ($request->has("custom_mails_" . $identifier . "_subject")) {
$gas->setConfig("mail_" . $identifier, (object) [
'subject' => $request->input('custom_mails_' . $identifier . '_subject', ''),
'body' => $request->input('custom_mails_' . $identifier . '_body', ''),
]);
Expand Down
2 changes: 1 addition & 1 deletion code/app/Importers/CSV/CSVImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private function retrievePreSelectedFields($parameters)
$fields = $this->fields();

foreach($parameters['columns'] as $index => $c) {
if (isset($sorted[$index])) {
if (isset($sorted[$index]) && isset($fields[$sorted[$index]])) {
$selected[] = (object) [
'label' => $fields[$sorted[$index]]->label,
'name' => $sorted[$index],
Expand Down

0 comments on commit ef3fa67

Please sign in to comment.