Some BLOGs not displaying Fry sizes

A historical forum for issues reported in the suggestions and bugs forum that have been subsequently fixed or resolved.
Post Reply
User avatar
bekateen
Posts: 6027
Joined: Tue Sep 09, 2014 5:50 pm
I've donated: $40.00!
My articles: 3
My images: 58
My cats species list: 104 (i:41, k:46)
My aquaria list: 30 (i:14)
My BLogs: 32 (i:112, p:1653)
My Wishlist: 32
Spotted: 127
Location 1: USA, California, Stockton
Location 2: USA, California, Stockton
Contact:

Some BLOGs not displaying Fry sizes

Post by bekateen »

Hi Jools,

I'm noticing that some BLOG entries show fry sizes at various ages and others don't display them. For example, if you check my BLOGS for Dekeyseria picta and Rineloricaria eigenmanni, you'll see fry sizes listed in the Dekeyseria BLOG but not in the Rineloricaria BLOG, even though I've entered fry sizes in both.

Cheers, Eric
"So many catfishes, so little time... and space... and money." - I said this after visiting Pier Aquatics.
Image
http://youtube.com/user/Bekateen1
Would you like to buy my fish? Click HERE for prices.

User avatar
bekateen
Posts: 6027
Joined: Tue Sep 09, 2014 5:50 pm
I've donated: $40.00!
My articles: 3
My images: 58
My cats species list: 104 (i:41, k:46)
My aquaria list: 30 (i:14)
My BLogs: 32 (i:112, p:1653)
My Wishlist: 32
Spotted: 127
Location 1: USA, California, Stockton
Location 2: USA, California, Stockton
Contact:

Re: Some BLOGs not displaying Fry sizes

Post by bekateen »

Follow up: Right now I do not have any data for Rineloricaria fry size at 1 week old (so the entry field contains the default "0" mm), and when I view the complete BLOG, I see no fry sizes listed. But if I change the size at 1 week from "0" mm to a random number greater than zero (I used "1" mm), then save and view the BLOG, THEN all of the size entries appear. If I delete the "1" mm entry at 1 week of age and replace it with "0" mm, then all of the fry sizes disappear again when the BLOG is viewed.

Conversely, I do have size at 1 week listed for the Dekeyseria BLOG, and all the fry sizes display. If I change the value at 1 week from its current number ("10" mm) to the default "0" mm, then all the other fry sizes disappear when this BLOG is viewed.

I don't recall ever noticing that behavior on BLOGS in years past, but maybe it's always been there?

Cheers, Eric
"So many catfishes, so little time... and space... and money." - I said this after visiting Pier Aquatics.
Image
http://youtube.com/user/Bekateen1
Would you like to buy my fish? Click HERE for prices.

User avatar
Jools
Expert
Posts: 14675
Joined: Mon Dec 30, 2002 3:25 pm
My articles: 189
My images: 905
My catfish: 244
My cats species list: 89 (i:0, k:7)
My aquaria list: 2 (i:2)
My BLogs: 7 (i:5, p:194)
My Wishlist: 17
Spotted: 941
Location 1: M8
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Some BLOGs not displaying Fry sizes

Post by Jools »

This makes sense given the code I am looking at. What it did was check (3 times, incorrectly) if the 7 days size field was empty or not, if not then the 7, 14 and 21 information was displayed.

I have changed this to be what the code should have done which is check if any of the 7,14 or 21-day size data has a non zero value and if so then display the text.

Could you try the process above and confirm the behaviour is changed to be as you would expect?

Cheers,

Jools

User avatar
bekateen
Posts: 6027
Joined: Tue Sep 09, 2014 5:50 pm
I've donated: $40.00!
My articles: 3
My images: 58
My cats species list: 104 (i:41, k:46)
My aquaria list: 30 (i:14)
My BLogs: 32 (i:112, p:1653)
My Wishlist: 32
Spotted: 127
Location 1: USA, California, Stockton
Location 2: USA, California, Stockton
Contact:

Re: Some BLOGs not displaying Fry sizes

Post by bekateen »

For Dekeyseria picta: with 7 days set to 10 mm and then to 0 mm. Seems to work correctly now.

Thanks!
Eric
Attachments
Screenshot_20200405-005438_Chrome.jpg
Screenshot_20200405-005515_Chrome.jpg
"So many catfishes, so little time... and space... and money." - I said this after visiting Pier Aquatics.
Image
http://youtube.com/user/Bekateen1
Would you like to buy my fish? Click HERE for prices.

User avatar
Jools
Expert
Posts: 14675
Joined: Mon Dec 30, 2002 3:25 pm
My articles: 189
My images: 905
My catfish: 244
My cats species list: 89 (i:0, k:7)
My aquaria list: 2 (i:2)
My BLogs: 7 (i:5, p:194)
My Wishlist: 17
Spotted: 941
Location 1: M8
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Some BLOGs not displaying Fry sizes

Post by Jools »

I could improve that and put "not recorded" in for the zero entry - let me have a look at it....



Jools

User avatar
bekateen
Posts: 6027
Joined: Tue Sep 09, 2014 5:50 pm
I've donated: $40.00!
My articles: 3
My images: 58
My cats species list: 104 (i:41, k:46)
My aquaria list: 30 (i:14)
My BLogs: 32 (i:112, p:1653)
My Wishlist: 32
Spotted: 127
Location 1: USA, California, Stockton
Location 2: USA, California, Stockton
Contact:

Re: Some BLOGs not displaying Fry sizes

Post by bekateen »

Or "N/A" (not available) for brevity
"So many catfishes, so little time... and space... and money." - I said this after visiting Pier Aquatics.
Image
http://youtube.com/user/Bekateen1
Would you like to buy my fish? Click HERE for prices.

User avatar
Jools
Expert
Posts: 14675
Joined: Mon Dec 30, 2002 3:25 pm
My articles: 189
My images: 905
My catfish: 244
My cats species list: 89 (i:0, k:7)
My aquaria list: 2 (i:2)
My BLogs: 7 (i:5, p:194)
My Wishlist: 17
Spotted: 941
Location 1: M8
Location 2: Scotland
Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
Contact:

Re: Some BLOGs not displaying Fry sizes

Post by Jools »

Fixed it up, it simply doesn't display a particular size if there is no data for it.

Jools

Post Reply