Hello,**
Describe the issue or problem**
The DataCite plugin ist not able to register a DOI for a submission if it has no abstract. The following exception is thrown:
APP\plugins\generic\datacite\filter\DataciteXmlFilter::getPrimaryTranslation(): Argument #1 ($localizedData) must be of type array, null given, called in /var/www/ojs3/plugins/generic/datacite/filter/DataciteXmlFilter.php on line 689
Steps I took leading up to the issue
- Create a submission with no abstract
- Register a DOI with the Datacite plugin
- Find an error in the failed_jobs table
What application are you using?
OJS 3.4.0-5
Additional information
I was able to fix the problem by making the first Argument of getPrimaryTranslation nullable:
There is already a check in the function whether there is localized data at all so my guess is that the change should not have a negative impact.
Best regards,
Fabian