Seite 1 von 1

Knowledge-Base: Beim Editieren wird neuer Artikel gezählt

Verfasst: 27.11.2007 00:24
von LOLRainbow
Hi,

ich habe die Knowledge-Base installiert.

Ich trage einen Artikel ein und in der Kategorie wird dann die korrekte Anzahl an Artikeln angezeigt. Bearbeite ich den Artrikel jedoch erhöht sich die Anzahl der Artikel um 1, obwohl es ja nicht mehr geworden sind.

Wie kann ich das unterbinden?

Timo

Verfasst: 27.11.2007 20:53
von StanleyG
Du hast wohl die zahlreichen Patches für die KB nicht installiert?
siehe
http://www.amigalink.de/phpbb2/viewtopic.php?t=322

Dort findest Du nämlich:

Code: Alles auswählen

#
#----------[ OPEN ]-------------------------------------
#

 includes/kb_post.php

#
#----------[ FIND ]-------------------------------------
#

          if ( $kb_is_auth['auth_mod'] || $kb_is_auth['auth_approval_edit'] ) // approval auth
          {
             $approve = 1;
             
             if ( $cat_switch )
             {
                update_kb_number( $old_category_id, ( $old_approve == 1 ? '- 1' : '0' ) );
                update_kb_number( $category_id, '+ 1' );
             }
             else
             {
                update_kb_number( $category_id, '+ 1' );
             }
          }
          else
          {
             $approve = 2;
             
             if ( $cat_switch )
             {
                update_kb_number( $old_category_id, ( $old_approve == 1 ? '- 1' : '0' ) );
             }
          }   

#
#----------[ REPLACE WITH ]-----------------------------
#

           if ( $kb_is_auth['auth_mod'] || $kb_is_auth['auth_approval_edit'] ) // approval auth
           {
             $approve = 1;
             
             if ( $cat_switch )
             {
                update_kb_number( $old_category_id, ( $old_approve == 1 ? '- 1' : '0' ) );
                update_kb_number( $category_id, '+ 1' );
             }
           }
           else
           {
             $approve = 2;
             
             if ( $cat_switch )
             {
                update_kb_number( $old_category_id, ( $old_approve == 1 ? '- 1' : '0' ) );
                update_kb_number( $category_id, '+ 1' );
             }
          }
Stanley

Verfasst: 27.11.2007 21:07
von LOLRainbow
Danke, das war´s! Dachte das sind Addon´s, wo die Knowledge-Base dann mehr kann. Das wäre ja nicht mein Ziel gewesen.

Aber ich werd mir die ganzen Fixe mal durchschauen.

Timo

Verfasst: 27.11.2007 21:09
von StanleyG
Da sind auch sehr wichtige Sicherheitspatches dabei. Ich würde sie also umgehend einbauen.

Stanley

Verfasst: 27.11.2007 21:16
von LOLRainbow
Woher weiß ich welcher Fix für was ist? Steht ja nichts dran, oder bin ich blind?

Timo