From: Frank Brehm Date: Mon, 8 Sep 2008 21:44:30 +0000 (+0000) Subject: Templates weitergemacht X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=476844a0c98c39c832c3826aeb897abb4015aad0;p=books.git Templates weitergemacht --- diff --git a/lib/FrBr/Books/Util/Category.pm b/lib/FrBr/Books/Util/Category.pm index b48731d..4267b29 100644 --- a/lib/FrBr/Books/Util/Category.pm +++ b/lib/FrBr/Books/Util/Category.pm @@ -147,7 +147,7 @@ ENDE $sth->execute( $category_id, $cat_name, $cat_name ); }; - $storage->dbh_do( $save_func, $cat->{'id'}, $cat-->{'name'} ); + $storage->dbh_do( $save_func, $cat->{'id'}, $cat->{'name'} ); return $storage->last_insert_id(); diff --git a/root/src/books/book_form.tt2 b/root/src/books/book_form.tt2 index ebd694c..8073815 100644 --- a/root/src/books/book_form.tt2 +++ b/root/src/books/book_form.tt2 @@ -22,6 +22,11 @@ function goto_new_verlag() { window.location.href = target; } +function goto_new_category() { + var target = '[% Catalyst.web_path( '/kategorie/new', { 'return_target_form' => self_url } ) %]'; + window.location.href = target; +} + //]]>
@@ -85,7 +90,7 @@ function goto_new_verlag() { [% END %]

-

+