While editing a customer, there are seven buttons towards the bottom
of the screen. In addition to Save Changes and Save New, actions
include AR Transaction, Customer Invoice, Sales Order, Quotation and
Pricelist. None of these five action buttons work; each produces a
blank screen. Here are lines from the Apache error log: [Sun Oct 28 17:59:46 2012] [error] [client 127.0.0.1] Can't call method "text" on an undefined value at LedgerSMB/Form.pm line 673., referer: http://localhost/ledgersmb/customer.pl [Sun Oct 28 17:59:46 2012] [error] [client 127.0.0.1] Compilation failed in require at /home/brian/projects/ledgersmb/customer.pl line 8., referer: http://localhost/ledgersmb/customer.pl The above lines seem to point to these lines of code in
LedgerSMB/Form.pm:
my $status = $LedgerSMB::App_State::Locale->text( 'Action: [_1], ID: [_2]', $self->{action}, $self->{id} ); Here is the entire subroutine: sub open_status_div { my ($self) = @_; my $class; if ($self->{approved} and $self->{id}){ $class = "posted"; } elsif ($self->{id}){ $class = "saved"; } else { $class = "new"; } my $status = $LedgerSMB::App_State::Locale->text( 'Action: [_1], ID: [_2]', $self->{action}, $self->{id} ); return "<div id='statusdiv' class='$class'> <div id='history'>$status</div>"; } It looks like the subroutine is expecting an action and an ID, processes them, and returns a DIV element. Does anyone have some idea what may be wrong or why? Thanks. Brian Brian Wolf
Phone: 410.367.2958
Email: ..hidden..
Try out Activus
Secure Payments™, our recurring payments
application.
Demo at http://demo.activustech.com
|