From cc46d3d437749fbae9d58c688380c53086e526ab Mon Sep 17 00:00:00 2001 From: Lukas Mueller Date: Wed, 2 Nov 2022 05:49:24 -0400 Subject: [PATCH] fix logic of error pushing. --- lib/SGN/Controller/AJAX/Grafting.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SGN/Controller/AJAX/Grafting.pm b/lib/SGN/Controller/AJAX/Grafting.pm index 3d31e0809..115a65996 100644 --- a/lib/SGN/Controller/AJAX/Grafting.pm +++ b/lib/SGN/Controller/AJAX/Grafting.pm @@ -131,7 +131,7 @@ sub upload_grafts_store : Path('/ajax/grafts/upload_store') Args(0) { print STDERR Dumper $info; - if ($info->{errors}){ + if (exists($info->{errors}) && defined($info->{error}) && $info->{error} ne ''){ push @error_grafts, $info->{error}; } else { -- 2.11.4.GIT