Browse Source

allow negative numbers

git-svn-id: file:///home/pjones/src/tmp/b2-svn/prepos/trunk@289 637e2b85-2e0a-0410-84ac-bd785500051d
master
pjones 13 years ago
parent
commit
526aeb58d0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      bin/inventory-edit.pl

+ 1
- 1
bin/inventory-edit.pl View File

@@ -219,7 +219,7 @@ sub all_fields_are_good {

# check number fields
foreach my $field ('count') {
if ($widgets[$posmap{$field}]->getField('VALUE') !~ /^\s*\d+\s*$/) {
if ($widgets[$posmap{$field}]->getField('VALUE') !~ /^\s*-?\d+\s*$/) {
ui_dialog_okay("$titles{$field} must be a number, please check what you have typed.");
$current_widget = $posmap{$field};
return 0;

Loading…
Cancel
Save