This makes the POD for the columns() function consistent
with the rest of C4/Members.pm. It also removes a note
that can be relegated to the bug report and the Git
history.
Also, since C4::Members::columns() is not actually a
class method, this patch changes the invocation to
not call it that way.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
=head2 columns
- C4::Member->columns
+ my @columns = C4::Member::columns();
-=head3 USAGE
-
- use C4::Member;
- my @borrower_columns = C4::Member->columns;
-
-=head3 RETURNS
-
- The array of borrowers' table columns on success.
- An empty array on failure.
-
-=head3 NOTES
-
- This runs significantly faster than the previous code while
- being mostly SQL-agnostic.
+Returns an array of borrowers' table columns on success,
+and an empty array on failure.
=cut
use_ok('C4::Members');
}
-my @borrowers_columns = C4::Members->columns;
+my @borrowers_columns = C4::Members::columns;
ok(
$#borrowers_columns > 1,
'C4::Member->column returned a reasonable number of columns ('
my (@errors, @feedback);
my $extended = C4::Context->preference('ExtendedPatronAttributes');
my $set_messaging_prefs = C4::Context->preference('EnhancedMessagingPreferences');
-my @columnkeys = C4::Members->columns;
+my @columnkeys = C4::Members::columns();
if ($extended) {
push @columnkeys, 'patron_attributes';
}