Quellcode durchsuchen

Fix #30 : add/update appears to work

George S. Baugh vor 5 Jahren
Ursprung
Commit
a85dc03932
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      lib/Trog/Data/DUMMY.pm

+ 2 - 0
lib/Trog/Data/DUMMY.pm

@@ -172,6 +172,8 @@ sub add ($self, @posts) {
             $post->{version}  = $existing_post->{version};
             $post->{version}++;
         }
+        $post->{version} //= 0;
+        #TODO set local_href and content type correctly
 
         $post = _process($post);
         push @$example_posts, $post;