CHANGE_the Pre-Enrolment app - the Mobile and Email already exits alerts are showing even before entering any text :GWM
This commit is contained in:
parent
1b6f29a63e
commit
cfbf7fada2
@ -133,6 +133,9 @@ class ClientController extends AdminController
|
|||||||
$field = $this->request->getPost('field');
|
$field = $this->request->getPost('field');
|
||||||
$value = $this->request->getPost('value');
|
$value = $this->request->getPost('value');
|
||||||
|
|
||||||
|
if($value == '')
|
||||||
|
return $this->response->setJSON(['isDuplicate' => false]);
|
||||||
|
|
||||||
// Load the database if not already loaded
|
// Load the database if not already loaded
|
||||||
$db = db_connect();
|
$db = db_connect();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user