Page 1 of 1

just a minor bug: Cotm doesn't redirect to most recent entry

Posted: 13 Jan 2012, 10:57
by sidguppy
like the title

i can see on the homepage that this months Cotm is a corydoras species
but if i click omn that picture Pterosturisoma microps pops up
and the cory doesn't show up in the list either

its ptrobably just a tiny piece of code, mind
;)

Re: just a minor bug: Cotm doesn't redirect to most recent e

Posted: 13 Jan 2012, 11:36
by MatsP
Hmm, seems a bit strange. Since I changed this code not so long ago, I'll have a look when I get home.

--
Mats

Re: just a minor bug: Cotm doesn't redirect to most recent e

Posted: 13 Jan 2012, 11:40
by Jools
Good spot Sid. I've fixed it up.

The issue, Mats, is that the subject (not important in this) and the part field on the articles table isn't getting populated. I think the code might have "got lost" as it was (rather oddly) in the "forumised" pages - should be part of the admin function of adding an article in an ideal world. Those two fields should get populated, respectively, with "An in-depth article on Corydoras gracilis" and the integer of the month of the CotM. In this case 12. That integer drives the behaviour of the link on the front page and in the dropdown menus.

Jools