X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fmsgcat.cgi;h=937fc7c24bcfcd48f2353437a865e567debd81cb;hp=7175fa2b3851a5f711bcaa9acbf825946777f1e5;hb=HEAD;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195 diff --git a/httemplate/edit/process/msgcat.cgi b/httemplate/edit/process/msgcat.cgi index 7175fa2b3..937fc7c24 100644 --- a/httemplate/edit/process/msgcat.cgi +++ b/httemplate/edit/process/msgcat.cgi @@ -13,6 +13,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 + die "editing en_US locale is currently disabled" if $old->locale eq 'en_US'; my $new = new FS::msgcat { $old->hash }; $new->msg($cgi->param($param)); $error = $new->replace($old);