From 0876433fb365782304acf2129ffb3e24a70dfbe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz> Date: Thu, 23 Jun 2022 01:26:56 +0200 Subject: [PATCH] Bugfix --- VERSION | 2 +- lib/PZ/Controller/Shortcut.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 0ea3a94..0c62199 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.0 +0.2.1 diff --git a/lib/PZ/Controller/Shortcut.pm b/lib/PZ/Controller/Shortcut.pm index 792af36..48d1746 100644 --- a/lib/PZ/Controller/Shortcut.pm +++ b/lib/PZ/Controller/Shortcut.pm @@ -43,7 +43,7 @@ sub create ($c) { $shortcut ||= $c->schema->resultset('Shortcut')->create({ %data, - shortcut => $custom // $c->schema->resultset('Shortcut')->generate(), + shortcut => ($custom || $c->schema->resultset('Shortcut')->generate()), }); $url = 'https://' . $c->config->{domain} . '/' . $shortcut->shortcut; -- GitLab