Skip to content

Commit

Permalink
Item2321: PATCH /attachment works - both entire topic's FILEATTACHMEN…
Browse files Browse the repository at this point in the history
…T array - really is a PUT /attachment, or a PATCH on /topic :)

git-svn-id: http://svn.foswiki.org/trunk@10192 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Dec 6, 2010
1 parent 87f0454 commit 358ec00
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/lib/Foswiki/Func.pm
Expand Up @@ -1627,6 +1627,9 @@ Test if attachment exists
* =$attachment= - attachment name, e.g.=logo.gif=
$web and $topic are parsed as described in the documentation for =normalizeWebTopicName=.
The attachment must exist in the store (it is not sufficient for it to be referenced
in the object only)
=cut

sub attachmentExists {
Expand Down
3 changes: 3 additions & 0 deletions core/lib/Foswiki/Meta.pm
Expand Up @@ -459,6 +459,9 @@ sub unload {
delete $this->{$type};
}
undef $this->{_indices};

#SMELL: Sven noticed diring development that something is adding a $this->{store} to a meta obj - havn't found it yet
#ASSERT(not defined($this->{store})) if DEBUG;
}

=begin TML
Expand Down
1 change: 1 addition & 0 deletions core/lib/Foswiki/Serialise.pm
Expand Up @@ -81,6 +81,7 @@ sub convertMeta {
foreach my $key ( keys(%$savedMeta) ) {
next if ( $key eq '_session' );
next if ( $key eq '_indices' );
next if ( $key eq 'store' );

#TODO: next if ( $key is one of the array types... and has no elements..

Expand Down

0 comments on commit 358ec00

Please sign in to comment.