Parent-child category errors

Started by dimkouv, 15 February 2016, 17:00:32

Previous topic - Next topic
A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

dimkouv

Greetings! I'm trying to set up and test your project, which I find rather tempting and well-organized. However, I've stumbled upon a bug, which is about how Abook manipulates child-categories and stores the values in the database. While creating categories without dealing with the parent levels, everything goes alright. But when I create / edit a category and set a parent category, it puts it under another parent. Moreover when I try to put a second category under that wrong-parent, then the first child becomes (awkwardly) a higher level child (i.e. 2->3) under the same parent.

The problem must be in the file /administrator/components/com_abook/models/category.php but I'm not a good php user to tell where the bug exactly is. Could you please take a look at this?

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

federica

Hi dimkouv,
which abook version are you using?
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

dimkouv

Alexandria Book Library 3.1.0 on Joomla 3.4.8

federica

Try to install the latest version (3.1.1), I fixed this bug.
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

dimkouv

Thank you so much!  ;D Do I have to uninstall the previous version before installing the new one or is there some update link? I wouldn't mind uninstalling it, because I have only put sample data to test it.

federica

You can install the new version without uninstall the previous version.
I suggest you to make a backup before the update
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]