[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5381] trunk



Revision: 5381
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5381&view=rev
Author:   einhverfr
Date:     2012-12-18 09:15:29 +0000 (Tue, 18 Dec 2012)
Log Message:
-----------
Fixes to employee search and display

Modified Paths:
--------------
    trunk/LedgerSMB/Entity/Location.pm
    trunk/LedgerSMB/Entity/User.pm
    trunk/sql/Pg-database.sql
    trunk/sql/modules/menu_rebuild.sql

Modified: trunk/LedgerSMB/Entity/Location.pm
===================================================================
--- trunk/LedgerSMB/Entity/Location.pm	2012-12-18 07:35:58 UTC (rev 5380)
+++ trunk/LedgerSMB/Entity/Location.pm	2012-12-18 09:15:29 UTC (rev 5381)
@@ -101,7 +101,7 @@
 
 =cut
 
-has 'old_location_class' => (is => 'ro', isa => 'Int', required => 1);
+has 'old_location_class' => (is => 'ro', isa => 'Int', required => 0);
 
 =item class_name
 

Modified: trunk/LedgerSMB/Entity/User.pm
===================================================================
--- trunk/LedgerSMB/Entity/User.pm	2012-12-18 07:35:58 UTC (rev 5380)
+++ trunk/LedgerSMB/Entity/User.pm	2012-12-18 09:15:29 UTC (rev 5381)
@@ -88,7 +88,7 @@
     my ($ref) = __PACKAGE__->call_procedure(
                  procname => 'admin__get_user', args => [$entity_id]
     );
-    $self->prepare_dbhash($ref);
+    return unless $ref->{entity_id};
     my @roles = __PACKAGE__->call_procedure(
                  procname => 'admin__get_roles_for_user', args => [$entity_id]
     );

Modified: trunk/sql/Pg-database.sql
===================================================================
--- trunk/sql/Pg-database.sql	2012-12-18 07:35:58 UTC (rev 5380)
+++ trunk/sql/Pg-database.sql	2012-12-18 09:15:29 UTC (rev 5381)
@@ -3032,7 +3032,7 @@
 206	module	reports.pl	575
 206	action	start_report	576
 38	account_class	1	39
-49	action	begin_report	117
+49	action	start_report	117
 49	module	reports.pl	118
 79	action	add	187
 79	item	service	188

Modified: trunk/sql/modules/menu_rebuild.sql
===================================================================
--- trunk/sql/modules/menu_rebuild.sql	2012-12-18 07:35:58 UTC (rev 5380)
+++ trunk/sql/modules/menu_rebuild.sql	2012-12-18 09:15:29 UTC (rev 5381)
@@ -272,7 +272,7 @@
 206	module	reports.pl	575
 206	action	start_report	576
 38	account_class	1	39
-49	action	begin_report	117
+49	action	start_report	117
 49	module	reports.pl	118
 79	action	add	187
 79	item	service	188

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.