Loading...
 
Development

Development


Bug in tiki_articles definition table?

posts: 27 Indonesia

in TW14.2 the field nbreads is defaulted to NULL.

When creating a new article, the read counter keeps always as NULL and shows to use user as:
( Reads) without any number
Captura

Running this SQL to change the default to 0

Copy to clipboard
ALTER TABLE `tiki_articles` CHANGE `nbreads` `nbreads` INT(14) NULL DEFAULT '0';


Fixes the problem and after creating a new article the user can see a number of reads and works OK
Captura2

Probably it could be fixed also by code but not brave enough to fix it.

Regards,
Pak

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting