load data for edit on demand
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 27 May 2010 21:28:16 +0000 (23:28 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 27 May 2010 21:28:16 +0000 (23:28 +0200)
lib/MojoFacets/Data.pm

index f704370..f293b94 100644 (file)
@@ -689,6 +689,8 @@ sub edit {
        my $name = $self->param('name') || die "no name";
        my $status = 200; # 200 = OK, 201 = Created
 
+       $self->_load_path( $path );
+
        if ( defined $loaded->{$path}->{data}->{items}->[$i] ) {
                $content =~ s/^\s+//s;
                $content =~ s/\s+$//s;