From a8a552920bb7080f483d7e03a980453993eb9ec7 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 29 Nov 2021 15:11:21 +0000 Subject: [PATCH] Bug 29592: Counterpart for authorities Similar adjustment. Check the breedingid again. Test plan: Same as former patch for authorities editor. Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer --- authorities/authorities.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authorities/authorities.pl b/authorities/authorities.pl index 3b4a5d64be..b5fdedc923 100755 --- a/authorities/authorities.pl +++ b/authorities/authorities.pl @@ -129,7 +129,8 @@ sub create_input { # if there is no value provided but a default value in parameters, get it if ($value eq '') { - $value = $tagslib->{$tag}->{$subfield}->{defaultvalue} if !$cgi->param('authid'); # only for new records + $value = $tagslib->{$tag}->{$subfield}->{defaultvalue} if !$cgi->param('authid') && !$cgi->param('breedingid'); + # only for new records, not for imports if (!defined $value) { $value = q{}; } -- 2.30.2