tripal / brapi

Breeding API client-server implementation (v1 & v2) for Tripal
https://www.drupal.org/project/brapi
0 stars 3 forks source link

PHP8 warning on "/brapi/v1/variables" #47

Open dsenalik opened 1 year ago

dsenalik commented 1 year ago

There is an error in the code for the 1.1 /brapi/v1/variables call, it attempts to look up a leadPerson from a cvterm, but leadPerson is not a field that this should return? Errors that show up in the log:

Warning: Undefined variable $project in {closure}() (line 3708 of .../sites/all/modules/brapi/api/brapi.const.inc).
Warning: Attempt to read property "project_id" on null in {closure}() (line 3708 of .../sites/all/modules/brapi/api/brapi.const.inc).
Warning: Trying to access array offset on value of type bool in {closure}() (line 3714 of .../sites/all/modules/brapi/api/brapi.const.inc).