Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle EPrint::MetaField->ordervalue_single returning undefined #419

Open
drn05r opened this issue Jan 4, 2025 · 0 comments
Open

Handle EPrint::MetaField->ordervalue_single returning undefined #419

drn05r opened this issue Jan 4, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@drn05r
Copy link
Contributor

drn05r commented Jan 4, 2025

The following code will throw an error on line 2101 if EPrint::MetaField->ordervalue_single in the for loop pushes an undefined value to the array @r. The value returned should be tested before being push onto the array and only added if defined.

foreach( @$value )
{
push @r, $self->ordervalue_single( $_ , $session , $langid, $dataset );
}
return $session->get_database->quote_ordervalue($self, join( ":", @r ));

@drn05r drn05r added the bug Something isn't working label Jan 4, 2025
@drn05r drn05r added this to the 3.4.7 milestone Jan 4, 2025
@drn05r drn05r self-assigned this Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant