projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45bba92
)
more rigourous check of edits
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 5 Jun 2010 17:27:58 +0000
(19:27 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 5 Jun 2010 17:27:58 +0000
(19:27 +0200)
lib/MojoFacets/Actions.pm
patch
|
blob
|
history
diff --git
a/lib/MojoFacets/Actions.pm
b/lib/MojoFacets/Actions.pm
index
0143ea9
..
e33310e
100644
(file)
--- a/
lib/MojoFacets/Actions.pm
+++ b/
lib/MojoFacets/Actions.pm
@@
-64,7
+64,12
@@
sub edits {
foreach my $t ( sort { $a cmp $b } glob $glob ) {
my $e = retrieve($t);
if ( $items ) {
+ die "no unique in ", dump($e) unless exists $e->{unique};
my ($pk,$id) = %{ $e->{unique} };
+ if ( ! $pk ) {
+ warn "SKIP ",dump($e);
+ next;
+ }
if ( ! defined $unique2id->{$pk} ) {
warn "unique2id $pk on ", $#$items + 1 ," items\n";
foreach my $i ( 0 .. $#$items ) {