Small but annoying bug in authors model abook V2.0.2

Started by raum, 10 April 2012, 17:42:43

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

raum

First thank you for your great component an the nice work you pulled out !

I noticed that displaying a single 'author' was not possible unless it had some 'books' related to him.

I digged a bit and saw in 'models/author.php' that you used a LEFT JOIN to relate to the table 'abbookauth', so giving no results if the author has no books.

So I corrected line 149 to RIGHT join the querry ...
Hope it helps ... and does not impair other functionalities !

Best regards,

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 raum,
thanks for your interest. I fixed the query.
I will put this fix in the next version.

Bye bye
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]