X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2FID3FS%2FPathElement%2FTag.pm;h=19c33783192e4ec59f5f2a5bd23ec5d55c943efd;hb=74a215841ddeb33dda27da5bdc3e1981e6b780d7;hp=2574d2652e12f526cf156fcd62c064c5a710278f;hpb=72614ea3786a31bcc1f24b0bdc9cd888f8a81f66;p=id3fs.git diff --git a/lib/ID3FS/PathElement/Tag.pm b/lib/ID3FS/PathElement/Tag.pm index 2574d26..19c3378 100644 --- a/lib/ID3FS/PathElement/Tag.pm +++ b/lib/ID3FS/PathElement/Tag.pm @@ -12,8 +12,8 @@ sub new $self->{db}=shift; $self->{name}=shift; - $self->{parent_id}=shift; - $self->{id}=$self->{db}->id("tags", $self->{name}); + $self->{parents_id}=shift; + $self->{id}=$self->{db}->lookup_id("tags", $self->{name}, $self->{parents_id}); return(undef) unless(defined($self->{id})); return($self); }