mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-10 14:44:04 +01:00
Fix minore
This commit is contained in:
parent
ec940b82f2
commit
9858c371c6
@ -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']),
|
||||
|
Loading…
Reference in New Issue
Block a user