$res->num_rows will not work on PostgreSQL. $db->num_rows() must be used
instead to execute the correct procedure depending on the database
backend.
But the call was not written properly and both were mixed up in commit
25741a618e which used $db->num_rows, and
then fixed in 72c443868c which used
$db->num_rows($result) where suited, except this location.
* make thirdparty code_client and code_compta modifiable via API
make code_client and code_compta modifiable via API call ( put /thirdparties/{id} ) for existing third parties
* fix: thirdparty code_client and code_compta modifiable via API (#30432)
make code_client and code_compta modifiable via API call ( put /thirdparties/{id} ) for existing third parties
# Qual: Fix phan/stan notices in relation with UnknownObjectMethodCall
Fix notices in classes with UnknownObjectMethodCall notices or classes
related with these.
* NEW retreive Thirdparty by account
usefull for external link
* Update api_thirdparties.class.php
* Update api_thirdparties.class.php
* Update api_thirdparties.class.php
* Update setValueFrom $id type to include null
* Only 2 arguments for ModeleNumRefMembers::getToolTip
* Fix PhanTypeConversionFromArray
* Only 6 args for PaymentSalary::addPaymentToBank
* Fix typing hints (array -> string)
* Fix uninitialized variables
* Add cssview to attributes phpdoc
* Avoid double typing specification (Phan notice)
* Qual: Ensure variable is defined (phan)
* Ensure phpdoc typing for verif method
* Ensure phpdoc typing for getNextValue method
* Add status as data key in cols array
* Ensure preg_replace operates on string (phan)
* Correct type for desiredstock
* Fix typing with casts (phan)
* Fix check that notification already exists
* Initialise fk_parent_id to fix typing issue
* Qual: Fix phan notices for Societe & related
* Qual: Fix typing for Facture and related
* Qual: Fix typing for Product & related
* Update baseline
* Fix new phpstan notices
* based on createCompanyNotification, just trying to do it with code and not id number
* can now create notifications by action trigger code
* will now prevent duplications
* checks if request_data contains event or fk_action key because then it uses that and not the action code supplied as text
* checks if request_data contains event or fk_action key because then it uses that and not the action code supplied as text
* now requires a well formed request_data with an event key
---------
Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk>