Changeset 8253
- Timestamp:
- 07/20/10 08:32:19 (3 years ago)
- File:
-
- 1 edited
-
trunk/core/lib/Foswiki/Meta.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/lib/Foswiki/Meta.pm
r8250 r8253 2605 2605 2606 2606 ---++ ObjectMethod hasAttachment( $name ) -> $boolean 2607 Test if the named attachment exists. Only valid on topics. 2607 Test if the named attachment exists. Only valid on topics. The attachment 2608 must exist in the store (it is not sufficient for it to be referenced 2609 in the object only) 2608 2610 2609 2611 =cut … … 2613 2615 ASSERT( $this->{_web} && $this->{_topic}, 'this is not a topic object' ) 2614 2616 if DEBUG; 2615 return 1 if $this->{_session}->{store}->attachmentExists( $this, $name ); 2616 2617 # Store denies knowledge of it; check the meta, just in case it's 2618 # been added to meta but not saved yet 2619 $this->reload(0) unless $this->latestIsLoaded(); 2620 return defined $this->get( 'FILEATTACHMENT', $name ); 2621 2617 return $this->{_session}->{store}->attachmentExists( $this, $name ); 2622 2618 } 2623 2619
Note: See TracChangeset
for help on using the changeset viewer.
