Vox Populi(x) forum

Alexandria Book Library => Errori (Bugs) => Topic started by: doctor78 on 11 December 2014, 17:47:50

Title: Categories problems
Post by: doctor78 on 11 December 2014, 17:47:50
Hi! I am having lots of problems with adding, editing and deleting categories:

1. I cannot create root level category. It keeps setting it as a sub category under the latest root category.
2. When I use the "Save as Copy" button I get this error  Missing field in database: AbookTableCategory   catid.
3. In general the cpanel of categories is very buggy. Hard to explain but the experience is not common to normal Joomla behaviour.

I am using Joomla 3.3.6. Could that be the reason?
Title: Re: Categories problems
Post by: doctor78 on 11 December 2014, 20:54:04
OK i discovered that for some reason aBook does not properly create root category. It automaticaly puts it under lastly used category.
Title: Re: Categories problems
Post by: doctor78 on 11 December 2014, 22:23:15
Save as Copy is not working because this function is missing in administrator\components\com_abook\models\category.php

      protected function generateNewTitle($parent_id, $alias, $title)
      {
         // Alter the title & alias
         $table = $this->getTable();
         while ($table->load(array('alias' => $alias, 'parent_id' => $parent_id)))
         {
            $title = JString::increment($title);
            $alias = JString::increment($alias, 'dash');
         }

         return array($title, $alias);
      }
Title: Re: Categories problems
Post by: federica on 15 December 2014, 09:50:38
doctor78, many thanks!!!!!!
I added this function.