diff --git a/VERSION b/VERSION index 0ea3a944b399d25f7e1b8fe684d754eb8da9fe7f..0c62199f16ac1e2d7f7ae75b420c1231325dff4e 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 792af3694f6bc74ab5f3c9cf20a2c2b507a655f9..48d1746f75dd21e32c7924eb0963a6b8d4fa2614 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;