mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 10:21:38 -04:00
Corrects error checking for middle name.
When and existing contact was updated it would produce an error that the contact already existed, and a new middle name needed to be used, also when created a contact without adding a first and/or last name the same error was produced. This fix corrects that bug.
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ $(function(){
|
||||
|
||||
// test whether patron's name already exists
|
||||
$.post("json/contact.php", {first_name: first_name.val(), middle_initial: middle_initial.val(),
|
||||
last_name: last_name.val(), test_name: 1 }, function(data) {
|
||||
last_name: last_name.val(), contact_id: contact_id, test_name: 1 }, function(data) {
|
||||
|
||||
if(data === "1") {
|
||||
err6 = error_handler(0, last_name_error, "","*Your name already exists, please choose a different middle initial.",e);
|
||||
|
||||
Reference in New Issue
Block a user