projects
/
id3fs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PathElement::Tag: use parents_id when looking up tag
[id3fs.git]
/
lib
/
ID3FS
/
PathElement
/
Tag.pm
diff --git
a/lib/ID3FS/PathElement/Tag.pm
b/lib/ID3FS/PathElement/Tag.pm
index
2574d26
..
19c3378
100644
(file)
--- 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->{db}=shift;
$self->{name}=shift;
- $self->{parent_id}=shift;
- $self->{id}=$self->{db}->
id("tags", $self->{name
});
+ $self->{parent
s
_id}=shift;
+ $self->{id}=$self->{db}->
lookup_id("tags", $self->{name}, $self->{parents_id
});
return(undef) unless(defined($self->{id}));
return($self);
}
return(undef) unless(defined($self->{id}));
return($self);
}