Skip to content

Commit

Permalink
Merge pull request #10 from loremipsum31/master
Browse files Browse the repository at this point in the history
Some fix.. cf. commits
  • Loading branch information
CySSoO authored Feb 21, 2024
2 parents dad6f67 + 445f6a4 commit cca4336
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions controllers/front/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ public function displayAjaxSetRequest()
'message' => $this->l('You have to consent our data policy terms'),
]));
}
$firstName = Tools::getValue('everfirstName');
$lastName = Tools::getValue('everlastName');
$email = Tools::getValue('everemail');
$phone = Tools::getValue('everphone');
$contacted = Tools::getValue('evercontacted');
$firstName = Tools::getValue('quotefirstName');
$lastName = Tools::getValue('quotelastName');
$email = Tools::getValue('quoteemail');
$phone = Tools::getValue('quotephone');
$contacted = Tools::getValue('contacted');
$sent = $this->sendQuoteAdminMail($firstName, $lastName, $email, $phone, $contacted);
die(json_encode([
'sent' => $sent,
Expand Down
2 changes: 1 addition & 1 deletion models/HTMLTemplateEverQuotationPdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function getHeader()
$newDateTimestamp = strtotime($everpsquotation->date_add . " +{$this->duration} days");

// Formater la nouvelle date au format 'd/m/Y'
$deadline = date('d/m/Y', $newDateTimestamp);
$deadline = date('Y-m-d h:m:s', $newDateTimestamp);
} else {
$deadline = false;
}
Expand Down

0 comments on commit cca4336

Please sign in to comment.