1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00

Merge pull request #4712 from turbo124/v5-stable

V5.0.49
This commit is contained in:
David Bomba 2021-01-19 17:02:32 +11:00 committed by GitHub
commit 68b03e8de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 4 deletions

View File

@ -37,6 +37,7 @@ jobs:
php artisan storage:link
sudo php artisan cache:clear
sudo find ./ -type f -exec chmod 644 {} \;
sudo find ./vendor/bin/ -type f -exec chmod +x {} \;
sudo find ./ -type d -exec chmod 755 {} \;
- name: Prepare JS/CSS assets

View File

@ -1 +1 @@
5.0.48
5.0.49

View File

@ -44,6 +44,10 @@ class TemplateEngine
private $settings;
private $raw_body;
private $raw_subject;
public function __construct($body, $subject, $entity, $entity_id, $template)
{
$this->body = $body;
@ -121,6 +125,9 @@ class TemplateEngine
private function replaceValues()
{
$this->raw_body = $this->body;
$this->raw_subject = $this->subject;
if ($this->entity_obj) {
$this->entityValues($this->entity_obj->client->primary_contact()->first());
} else {
@ -157,6 +164,7 @@ class TemplateEngine
$this->body = strtr($this->body, $data['values']);
$this->body = str_replace("\n", "<br>", $this->body);
$this->subject = strtr($this->subject, $data['labels']);
$this->subject = strtr($this->subject, $data['values']);
@ -197,9 +205,10 @@ class TemplateEngine
'subject' => $this->subject,
'body' => $this->body,
'wrapper' => $wrapper,
'raw_body' => $this->raw_body,
'raw_subject' => $this->raw_subject
];
$this->tearDown();
return $data;

View File

@ -13,7 +13,7 @@ return [
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', ''),
'app_version' => '5.0.48',
'app_version' => '5.0.49',
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', false),