From db65af4a945f402d899341f3a3cd891b47317ce9 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 Content-Type: text/plain; charset=utf-8 Similar adjustment. Check the breedingid again. Test plan: Same as former patch for authorities editor. Signed-off-by: Marcel de Rooy --- 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.20.1