summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-reason.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-08-03 17:52:34 -0700
committerIvan Kohler <ivan@freeside.biz>2016-08-03 17:52:34 -0700
commitcf54023e010df76e0c39ac70902877d7c4c94c6e (patch)
tree8109fa975ae8ecb4435172f9a990435a734c67b6 /httemplate/elements/tr-select-reason.html
parentd7759b49c2ff3b220ab328767645bfed85d18f31 (diff)
parentecf1c9cc0a20be6e489657e005ea771977b9f69c (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/elements/tr-select-reason.html')
-rwxr-xr-xhttemplate/elements/tr-select-reason.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/httemplate/elements/tr-select-reason.html b/httemplate/elements/tr-select-reason.html
index 97466f175..9a430222c 100755
--- a/httemplate/elements/tr-select-reason.html
+++ b/httemplate/elements/tr-select-reason.html
@@ -188,9 +188,8 @@ my $class = $opt{'reason_class'};
my $init_reason;
if ( $opt{'cgi'} ) {
$init_reason = $opt{'cgi'}->param($name);
-} else {
- $init_reason = $opt{'curr_value'};
}
+$init_reason ||= $opt{'curr_value'};
my $id = $opt{'id'} || $name;
$id =~ s/\./_/g; # for edit/part_event