mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
Fix editing of 'other' category name http://virtualmin.com/node/34341
This commit is contained in:
@ -28,9 +28,10 @@ $file .= ".".$in{'lang'} if ($in{'lang'});
|
||||
read_file($file, \%catnames);
|
||||
foreach $t (keys %text) {
|
||||
$t =~ s/^category_// || next;
|
||||
$field = $t || "other";
|
||||
print &ui_columns_row([
|
||||
$t || "<i>other</i>",
|
||||
&ui_opt_textbox($t, $catnames{$t}, 30,
|
||||
&ui_opt_textbox($field, $catnames{$t}, 30,
|
||||
$text{'default'}, $text{'categories_custom'}),
|
||||
], [ "valign=middle","valign=middle" ]);
|
||||
$realcat{$t}++;
|
||||
|
@ -8,9 +8,10 @@ require './webmin-lib.pl';
|
||||
# Save built-in categories
|
||||
foreach $t (keys %text) {
|
||||
$t =~ s/^category_// || next;
|
||||
if (!$in{$t."_def"}) {
|
||||
$in{$t} || &error(&text('categories_edesc', $t ? $t : 'other'));
|
||||
$catnames{$t} = $in{$t};
|
||||
$field = $t || "other";
|
||||
if (!$in{$field."_def"}) {
|
||||
$in{$field} || &error(&text('categories_edesc', $t || 'other'));
|
||||
$catnames{$t} = $in{$field};
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user