mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Bug fixes
This commit is contained in:
parent
c79ee49c1d
commit
a30b9039de
@ -32,20 +32,6 @@ class Contact extends EntityModel
|
||||
return PERSON_CONTACT;
|
||||
}
|
||||
|
||||
/*
|
||||
public function getLastLogin()
|
||||
{
|
||||
if ($this->last_login == '0000-00-00 00:00:00')
|
||||
{
|
||||
return '---';
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->last_login->format('m/d/y h:i a');
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return $this->getDisplayName();
|
||||
|
@ -77,7 +77,8 @@
|
||||
<div style="display:none" class="form-group" data-bind="visible: contacts().length > 0 && (contacts()[0].email() || contacts()[0].first_name()), foreach: contacts">
|
||||
<div class="col-lg-8 col-lg-offset-4">
|
||||
<label class="checkbox" data-bind="attr: {for: $index() + '_check'}" onclick="refreshPDF(true)">
|
||||
<input type="checkbox" value="1" data-bind="checked: send_invoice, attr: {id: $index() + '_check'}">
|
||||
<input type="hidden" value="0" data-bind="attr: {name: 'client[contacts][' + $index() + '][send_invoice]'}">
|
||||
<input type="checkbox" value="1" data-bind="checked: send_invoice, attr: {id: $index() + '_check', name: 'client[contacts][' + $index() + '][send_invoice]'}">
|
||||
<span data-bind="html: email.display"></span>
|
||||
</label>
|
||||
<span data-bind="html: $data.view_as_recipient"></span>
|
||||
@ -612,7 +613,7 @@
|
||||
for (var j=0; j<client.contacts.length; j++) {
|
||||
var contact = client.contacts[j];
|
||||
var contactName = getContactDisplayName(contact);
|
||||
if (contact.is_primary) {
|
||||
if (contact.is_primary === '1') {
|
||||
contact.send_invoice = true;
|
||||
}
|
||||
if (clientName != contactName) {
|
||||
|
Loading…
Reference in New Issue
Block a user