You are here: Foswiki>Tasks Web>Item13998 (29 Feb 2016, GeorgeClark)Edit Attach

Item13998: Attachment count mismatch when viewing older topic versions

pencil
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: QuerySearch
Branches:
Reported By: JulianLevens
Waiting For:
Last Change By: GeorgeClark
  1. I added an attachment to rev=n of a topic
  2. I added another attachment to rev=n+1 of a topic

Total 2 attachments of course and this is always the attachment count. However when you view rev=n you only get the 1st attachment listed. I.e. the count says 2 but the list only shows 1.

For consistency the attachment count should be based on the META in the revision, not the total attachments for the whole topic.

It's displayed by the template 'attachtables.pattern.tmpl', via %<QUERY{"length(attachments[NOT lc(attr)=~'h'])"}%, therefore it's an issue with QUERY and possibly quite a bit of work involved.

-- JulianLevens - 29 Feb 2016

 

ItemTemplate edit

Summary Attachment count mismatch when viewing older topic versions
ReportedBy JulianLevens
Codebase
SVN Range
AppliesTo Engine
Component QuerySearch
Priority Normal
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r2 - 29 Feb 2016, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy