mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
The filter HTML will use no-value placeholders for empty fields
This commit is contained in:
parent
9108de8865
commit
e390ab6b42
1 changed files with 2 additions and 2 deletions
|
@ -412,9 +412,9 @@ App.Pages.Customers = (function () {
|
|||
* @return {String} Returns the record HTML code.
|
||||
*/
|
||||
function getFilterHtml(customer) {
|
||||
const name = customer.first_name + ' ' + customer.last_name;
|
||||
const name = (customer.first_name || '[No First Name]') + ' ' + (customer.last_name || '[No Last Name]');
|
||||
|
||||
let info = customer.email;
|
||||
let info = customer.email || '[No Email]';
|
||||
|
||||
info = customer.phone_number ? info + ', ' + customer.phone_number : info;
|
||||
|
||||
|
|
Loading…
Reference in a new issue