mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
type fixes
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
|
||||
namespace Espo\Controllers;
|
||||
|
||||
use Espo\Core\Exceptions\BadRequest;
|
||||
|
||||
use Espo\Services\EmailTemplate as Service;
|
||||
|
||||
use Espo\Core\{
|
||||
@@ -44,6 +46,10 @@ class EmailTemplate extends Record
|
||||
{
|
||||
$id = $request->getQueryParam('id');
|
||||
|
||||
if ($id === null) {
|
||||
throw new BadRequest("No `id`.");
|
||||
}
|
||||
|
||||
return (object) $this->getEmailTempalteService()->parse(
|
||||
$id,
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user