Fix a typo in WSClient which prevented it from adding/editing assets.

Make the whitespace test give some context to its failures.
Fix a buglet in the label test.
This commit is contained in:
Colin Kuskie 2006-06-30 20:41:33 +00:00
parent 785645b2b6
commit 5ddc168659
4 changed files with 7 additions and 3 deletions

View file

@ -18,4 +18,5 @@
- fix: User/Group problem
- fix: Edit LDAP Connection
- fix: SQL Report w/ pagination and nested queries
- fix: Unable to add Web Services Client

View file

@ -118,7 +118,7 @@ sub getEditForm {
-name => 'templateId',
-value => $self->getValue('templateId'),
-namespace => "WSClient",
-label => WebG$i18n->get(72),
-label => $i18n->get(72),
-hoverHelp => $i18n->get('72 description'),
);
$tabform->getTab("display")->yesNo (

View file

@ -64,7 +64,10 @@ sub checkContent {
foreach my $line (@content) {
chomp $line;
my $isPodWord = ($line =~ m/^=/);
return 1 if ($isPodWord && !$podAllowed);
if ($isPodWord && !$podAllowed) {
diag $line;
return 1;
}
# POD is allowed on next line if current line is empty
$podAllowed = ($line eq '');
}

View file

@ -227,7 +227,7 @@ sub getHelpLabels {
sub getHelpVariables {
my ($variables) = @_; ##An arrayref of variables, possibly with nested variables in loops
my $tmplVars;
my $tmplVars = [];
foreach my $var ( @{ $variables } ) {
if ( exists $var->{variables} ) {
push @{ $tmplVars }, @{ getHelpVariables($var->{variables}) };