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

SF.net SVN: ledger-smb:[3842] branches/1.3



Revision: 3842
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3842&view=rev
Author:   einhverfr
Date:     2011-10-12 12:44:50 +0000 (Wed, 12 Oct 2011)
Log Message:
-----------
Correcting employee save routines per Herman Vierendeels' patch, see bug 3420595

Modified Paths:
--------------
    branches/1.3/UI/Contact/contact.html
    branches/1.3/scripts/employee.pl

Modified: branches/1.3/UI/Contact/contact.html
===================================================================
--- branches/1.3/UI/Contact/contact.html	2011-10-12 12:16:08 UTC (rev 3841)
+++ branches/1.3/UI/Contact/contact.html	2011-10-12 12:44:50 UTC (rev 3842)
@@ -90,6 +90,11 @@
 		name = "form_id"
 		value = form_id
 	} ?>
+<?lsmb PROCESS input element_data = {
+                type = "hidden"
+                name = "entity_id"
+               value = entity_id
+} ?>	
 <div class="input" id="person_name_div"><?lsmb #text('Name:')?>&nbsp;
 <div class="input_group">
 <!-- TODO:  Add Saluatation -->
@@ -158,8 +163,8 @@
 <div class="input_group">
 <?lsmb PROCESS input element_data = {
 	label = text('Employee Number')
-	value = employee_number
-	name = "employee_number"
+	value = employeenumber
+	name = "employeenumber"
 	type = "text"
 	size = 20
 } # ' ?>

Modified: branches/1.3/scripts/employee.pl
===================================================================
--- branches/1.3/scripts/employee.pl	2011-10-12 12:16:08 UTC (rev 3841)
+++ branches/1.3/scripts/employee.pl	2011-10-12 12:44:50 UTC (rev 3842)
@@ -234,8 +234,9 @@
                              procname => 'setting_increment', 
                              args     => ['employeenumber']
                            );
-        ($employee->{employee_number}) = values %$ref;
+        ($employee->{employeenumber}) = values %$ref;
     }
+    $employee->{employee_number}=$employee->{employeenumber};
     $employee->save();
     _render_main_screen($employee);
 }

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