View Issue Details

IDProjectCategoryView StatusLast Update
0004164mantisbtnewspublic2004-08-29 01:51
Reportermasc Assigned Tomasc  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformX86OSWindowsOS VersionWin2K
Fixed in Version0.19.0rc1 
Summary0004164: Announcement news don't remain on top
Description

I noticed the announcement news are removed from the news page when they become older then $g_news_view_limit_days. I guess the announcement has to remain on the top independently from the date. When the author would like to remove the news he has just to unset the annoucement flag.
Moreover in case of BY_DATE news, there is no control of the number of news and no page prev, page next is working.
I tried to fix all the point in the patch attached (against CVS HEAD).

Summarising:

when the option $g_news_limit_method is BY_DATE:

  • annoucement always on top (independently from the issue date)
  • news limit to $g_news_view_limit in any case

when the option is BY_LIMIT:

  • annoucement always on top (up to $g_news_view_limit)
  • news limit to $g_news_view_limit
TagsNo tags attached.
Attached Files
news_fix.zip (3,228 bytes)

Relationships

child of 0003987 closedvboctor Mantis 0.19.0 Release 

Activities

masc

masc

2004-08-02 08:14

reporter   ~0006550

Inviato memorandum a VictorBoctor

Victor,
I received no feedback on this bug. What is your feeling about it? Do you think we can apply it to CVS?

jlatour

jlatour

2004-08-06 11:46

reporter   ~0006722

Can you submit your fix as a diff, so we can see what you changed?

thraxisp

thraxisp

2004-08-14 13:23

reporter   ~0006987

fixed in CVS

Related Changesets

MantisBT: master e725633c

2004-08-14 14:25

thraxisp


Details Diff
fix 0004164: [news] Announcement news don't remain on top (masc)

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2849 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0004164
mod - core/news_api.php Diff File
mod - doc/ChangeLog Diff File
mod - main_page.php Diff File