summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/msgcat.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/process/msgcat.cgi')
-rw-r--r--httemplate/edit/process/msgcat.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/httemplate/edit/process/msgcat.cgi b/httemplate/edit/process/msgcat.cgi
index ab30f06b5..1f94f6668 100644
--- a/httemplate/edit/process/msgcat.cgi
+++ b/httemplate/edit/process/msgcat.cgi
@@ -3,6 +3,7 @@
my $error;
foreach my $param ( grep { /^\d+$/ } $cgi->param ) {
my $old = qsearchs('msgcat', { msgnum=>$param } );
+ next if $old->msg eq $cgi->param($param); #no need to update identical records
my $new = new FS::msgcat { $old->hash };
$new->msg($cgi->param($param));
$error = $new->replace($old);