mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Show default value when adding a row
This commit is contained in:
@@ -258,7 +258,9 @@ if ($total || $in{'new'}) {
|
||||
# Add an empty row for inserting
|
||||
$realrows = scalar(@data);
|
||||
if ($in{'new'}) {
|
||||
push(@data, [ map { undef } @str ]);
|
||||
push(@data, [ map { $_->{'default'} eq 'NULL' ? '' :
|
||||
$_->{'default'} eq 'CURRENT_TIMESTAMP' ? '':
|
||||
$_->{'default'} } @str ]);
|
||||
$row{$realrows} = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user