fixed 8899 and 8891: Calendar feeds cause edit screen to fail and Calendar still pull feeds from the trash

This commit is contained in:
Doug Bell 2008-10-28 17:10:06 +00:00
parent 52a21ff854
commit 18585200a7
3 changed files with 21 additions and 15 deletions

View file

@ -635,7 +635,8 @@ ENDHTML
my $feeds = $self->getFeeds();
$tab->raw('<script type="text/javascript">'."\n");
for my $feedId (keys %$feeds) {
$tab->raw("FeedsManager.addFeed('feeds','".$feedId."',".encode_json($feeds->{$feedId}).");\n");
my %row = %{ $feeds->{ $feedId } };
$tab->raw("FeedsManager.addFeed('feeds','".$feedId."',".JSON->new->encode( \%row ).");\n");
}
$tab->raw('</script>');