Hi all
I have posted thid PR: https://github.com/Dolibarr/dolibarr/pull/3796
Including this in external modules may help to fight the db name
change(or triggers) and to reduce anxiolitic eating for developpers
you can do
$sql = "SELECT * FROM ".MAIN_DB_PREFIX.TABLE_THIRDPARTY;
$sql .= " WHERE ".THIRDPARTY_FK_SOC." = ".$object->id;
in place of knowing the right name of past and future dolibarr version

Feel free to comment and populate the file if you think it's right
No need to check version if the file is correctly maintained

With best regards
Frederic FRANCE

_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à