Fork me on GitHub

db_extra_enable_categorization  Bottom

  • We can enable categorization by setting in pntable array new entry:

    Code

    $pntable[{modname}_db_extra_enable_categorization]


    And there is some inaccuracy. In DBUtil class or in some ValueAddons modules which are using new category system (Pages, News, FAQ).

    What inaccuracy?
    In Pages module in pntable.php we can find:

    Code

    // Enable categorization services
        $pntable['pages_db_extra_enable_categorization'] = pnModGetVar('Pages', 'enablecategorization');

    So categorization should be enabled only when suitable module variable is set to "true".

    But DBUtil class does not check if "pages_db_extra_enable_categorization" entry is set to true or false. If this entry is set (end even if its value is false) categorization is enabled.
    Code looks like this:

    Code

    if ( ( isset($pntables["{$tablename}_db_extra_enable_all"]) ||
                   isset($pntables["{$tablename}_db_extra_enable_categorization"]) ) &&


    So I think there is error somewhere - in DBUtil class or in value addons modules.

    --
    Polish Zikula Team
    Bianor Works - my Zikula works on CoZi
  • IMHO this is a bug - could you please open an entry within the tracker, please?

    --
    Guite | ModuleStudio
  • The attribution, meta and logging additions need to be checked too as they use the same lines of code in DBUtil.



    --
    "He is not dangerous, he just wants to play...."

This list is based on users active over the last 60 minutes.