mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-26 21:55:06 +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)
|
protected function getInfo($options)
|
||||||
{
|
{
|
||||||
if ($options['type'] == 'print') {
|
if ($options['type'] == 'print') {
|
||||||
|
$print = PrintTemplate::find((new PrintTemplate())->getByField('title', $options['id']));
|
||||||
|
|
||||||
|
if (empty($print)) {
|
||||||
|
$print = PrintTemplate::find($options['id']);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($print)) {
|
if (!empty($print)) {
|
||||||
$result = [
|
$result = [
|
||||||
'link' => \Prints::getHref($options['id'], $options['id_record'], $options['parameters']),
|
'link' => \Prints::getHref($options['id'], $options['id_record'], $options['parameters']),
|
||||||
|
Loading…
Reference in New Issue
Block a user