Articles' categories are deleted

Hi!

When I add a few categories to the Articles (like: sports, regional etc) they are deleted (all not used) when adding an article.

Scenario:
1) Add some categories for Articles (settings/admin).
2) See they are available when adding new article (select list, also in database in sys_categories).
3) Add article but choose only one category.
4) Try to add another article... voila - all categories that were empty (have not been selected) are gone.

I know this fragment of code deletes all my categories:

function reparseObjTags( $sType, $iID ) {^M
        $this->getTagObjectConfig();^M
        ^M
        $iID = (int)$iID;^M
        if ( array_key_exists($sType, $this->aTagObjects) && isset($this->aTagObjects[$sType]['Query'])) {^M
            db_res( "DELETE FROM `{$this->sTagTable}` WHERE `{$this->aTagFields['id']}` = $iID AND `{$this->aTagFields['type']}` = '$sType'" );^M
            $sqlQuery = str_replace('{iID}', $iID, $this->aTagObjects[$sType]['Query']);

Yes, this is inc/classes/BxDolTags.php, line 96.

Another weird thing is IDs of categories in database (after installation are all zeros). I think this is it doesn't work. DB table design issue?

Oh, and it is being parsed like tags too changing capital letters to small. I suggest to leave it to the editors choice.

Best regards and thank you for your valuable work.

Alex

PS
This applies to D7 beta 3.

Quote · 11 Aug 2009

Solved, will available in next update

Quote · 12 Aug 2009

Great!

Thank you for your quick fix.

Best regards,

Alex

PS

Is there any subversion or cvs where I can fetch current code so I can test?

Quote · 12 Aug 2009

http://www.boonex.com/trac/dolphin/changeset/12075

here as example

Quote · 12 Aug 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.