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

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