From 74a215841ddeb33dda27da5bdc3e1981e6b780d7 Mon Sep 17 00:00:00 2001 From: Ian Beckwith Date: Sun, 17 Oct 2010 07:18:21 +0100 Subject: [PATCH] PathElement::Tag: use parents_id when looking up tag --- lib/ID3FS/PathElement/Tag.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ID3FS/PathElement/Tag.pm b/lib/ID3FS/PathElement/Tag.pm index ad68f06..19c3378 100644 --- a/lib/ID3FS/PathElement/Tag.pm +++ b/lib/ID3FS/PathElement/Tag.pm @@ -13,7 +13,7 @@ sub new $self->{db}=shift; $self->{name}=shift; $self->{parents_id}=shift; - $self->{id}=$self->{db}->lookup_id("tags", $self->{name}); + $self->{id}=$self->{db}->lookup_id("tags", $self->{name}, $self->{parents_id}); return(undef) unless(defined($self->{id})); return($self); } -- 2.11.0