From: Bernd Blessmann Date: Fri, 11 May 2012 20:46:50 +0000 (+0200) Subject: Merge branch 'master' of vc.linet-services.de:public/lx-office-erp X-Git-Tag: release-3.0.0beta1~335^2~1 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/76a2823e654382ba101b4a611dd351a8c87034a1?hp=ed4b292c1489bbad1a6b3aa7d2f929fabff254bc Merge branch 'master' of vc.linet-services.de:public/lx-office-erp --- diff --git a/SL/Auth.pm b/SL/Auth.pm index d00edb812..9ed86d665 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -1298,6 +1298,7 @@ SL::Auth - Authentication and session handling =over 4 =item C + =item C Store all values of C<@values> or C<%values> in the session. Each diff --git a/SL/CT.pm b/SL/CT.pm index 888634894..49eb59154 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -448,12 +448,14 @@ sub save_customer { 'trans_id' => $form->{id}, 'variables' => $form, 'always_valid' => 1); - CVar->save_custom_variables('dbh' => $dbh, - 'module' => 'Contacts', - 'trans_id' => $form->{cp_id}, - 'variables' => $form, - 'name_prefix' => 'cp', - 'always_valid' => 1); + if ($form->{cp_id}) { + CVar->save_custom_variables('dbh' => $dbh, + 'module' => 'Contacts', + 'trans_id' => $form->{cp_id}, + 'variables' => $form, + 'name_prefix' => 'cp', + 'always_valid' => 1); + } my $rc = $dbh->commit(); @@ -663,12 +665,14 @@ sub save_vendor { 'trans_id' => $form->{id}, 'variables' => $form, 'always_valid' => 1); - CVar->save_custom_variables('dbh' => $dbh, - 'module' => 'Contacts', - 'trans_id' => $form->{cp_id}, - 'variables' => $form, - 'name_prefix' => 'cp', - 'always_valid' => 1); + if ($form->{cp_id}) { + CVar->save_custom_variables('dbh' => $dbh, + 'module' => 'Contacts', + 'trans_id' => $form->{cp_id}, + 'variables' => $form, + 'name_prefix' => 'cp', + 'always_valid' => 1); + } my $rc = $dbh->commit(); diff --git a/SL/DB/Helper/Attr.pm b/SL/DB/Helper/Attr.pm index f7fabfe89..8c99903d3 100644 --- a/SL/DB/Helper/Attr.pm +++ b/SL/DB/Helper/Attr.pm @@ -129,6 +129,8 @@ sub _as_bool_yn { __END__ +=encoding utf-8 + =head1 NAME SL::DB::Helper::Attr - attribute helpers @@ -144,10 +146,18 @@ SL::DB::Helper::Attr - attribute helpers =head1 DESCRIPTION +Makes attribute helpers. + =head1 FUNCTIONS +see for yourself. + =head1 BUGS +None yet. + =head1 AUTHOR +Sven Schöling + =cut diff --git a/SL/DBUtils.pm b/SL/DBUtils.pm index 5fc33cedc..1f243bcfd 100644 --- a/SL/DBUtils.pm +++ b/SL/DBUtils.pm @@ -605,4 +605,5 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + =cut diff --git a/SL/InstallationCheck.pm b/SL/InstallationCheck.pm index 935d131cd..27581ad4f 100644 --- a/SL/InstallationCheck.pm +++ b/SL/InstallationCheck.pm @@ -17,7 +17,7 @@ BEGIN { { name => "DBI", version => '1.50', url => "http://search.cpan.org/~timb/", debian => 'libdbi-perl' }, { name => "DBD::Pg", version => '1.49', url => "http://search.cpan.org/~dbdpg/", debian => 'libdbd-pg' }, { name => "Email::Address", url => "http://search.cpan.org/~rjbs/", debian => 'libemail-address-perl' }, - { name => "FCGI", url => "http://search.cpan.org/~mstrout/", debian => 'libfcgi-perl' }, + { name => "FCGI", version => '0.72', url => "http://search.cpan.org/~mstrout/", debian => 'libfcgi-perl' }, { name => "JSON", url => "http://search.cpan.org/~makamaka", debian => 'libjson-perl' }, { name => "List::MoreUtils", version => '0.21', url => "http://search.cpan.org/~vparseval/", debian => 'liblist-moreutils-perl' }, { name => "Params::Validate", url => "http://search.cpan.org/~drolsky/", debian => 'libparams-validate-perl' }, @@ -45,6 +45,7 @@ BEGIN { { name => "Devel::REPL", url => "http://search.cpan.org/~doy/", debian => 'libdevel-repl-perl' }, { name => "Moose::Role", url => "http://search.cpan.org/~doy/", debian => 'libmoose-role-perl' }, { name => "Perl::Tags", url => "http://search.cpan.org/~osfameron/", debian => 'libperl-tags-perl' }, + { name => "Test::Deep", url => "http://search.cpan.org/~rjbs/", debian => 'libtest-deep-perl' }, ); $_->{fullname} = join ' ', grep $_, @$_{qw(name version)} diff --git a/SL/MoreCommon.pm b/SL/MoreCommon.pm index 9be3bc8a1..dad975037 100644 --- a/SL/MoreCommon.pm +++ b/SL/MoreCommon.pm @@ -201,6 +201,7 @@ The exceptions are documented here. =over 4 =item save_form + =item restore_form A lot of the old sql-ledger routines are strictly procedural. They search for params in the $form object, do stuff with it, and return a status code. diff --git a/SL/WH.pm b/SL/WH.pm index cc53427c5..9a0635603 100644 --- a/SL/WH.pm +++ b/SL/WH.pm @@ -1023,6 +1023,8 @@ An expiration date. Note that this is not by default used by C =head1 BUGS +None yet. + =head1 AUTHOR =cut