diff options
author | Yorhel <git@yorhel.nl> | 2011-03-09 11:24:11 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-03-09 11:24:11 +0100 |
commit | 74a0788420200b5acb6b81916d931bab75bae4d5 (patch) | |
tree | 2f5fac52f2b9d9d433f2e5b5767afc023bc6ae6d | |
parent | 971d8e3f193cb6c8682f5492cfcc8835b58605c2 (diff) |
Auto-set category when creating new child tag
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | lib/VNDB/Handler/Tags.pm | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -1,5 +1,6 @@ 2.19 - ? - Don't allow users to edit their post when it was deleted + - Auto-set category when creating new child tag 2.18 - 2011-02-08 - Added category field to tags (content/ero/technical) diff --git a/lib/VNDB/Handler/Tags.pm b/lib/VNDB/Handler/Tags.pm index cff5d980..a5519cd8 100644 --- a/lib/VNDB/Handler/Tags.pm +++ b/lib/VNDB/Handler/Tags.pm @@ -201,6 +201,7 @@ sub tagedit { $par = $self->dbTagGet(id => $tag)->[0]; return $self->resNotFound if !$par; $frm->{parents} = $par->{name}; + $frm->{cat} = $par->{cat}; $tag = undef; } |