Fix minore

This commit is contained in:
Pek5892 2024-04-12 10:22:56 +02:00
parent ec940b82f2
commit 9858c371c6
1 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,12 @@ class ButtonManager implements ManagerInterface
protected function getInfo($options)
{
if ($options['type'] == 'print') {
$print = PrintTemplate::find((new PrintTemplate())->getByField('title', $options['id']));
if (empty($print)) {
$print = PrintTemplate::find($options['id']);
}
if (!empty($print)) {
$result = [
'link' => \Prints::getHref($options['id'], $options['id_record'], $options['parameters']),