Delete assigned category, author, editor etc. without warning - solved

Started by iberan, 23 November 2024, 14:47:08

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

iberan

Hi,

There is no any warning if delete category from Trash – assigned to a book; delete author, editor, library, tag – assigned to a book; delete taggroup – assigned to a tag.

Abook 4.0.5
Joomla 5.2.1
PHP 8.3
MariaDB 10.5.26

Possible solution – change in administrator/components/com_abook/tables/category.php #157 and #166; author.php #77; editor.php #77; library.php #53; tag.php #76; taggroup.php #48:$xid = $this->_db->getNumRows();to$xid = $this->_db->loadResult();
Hope this helps someone.

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

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]