1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Only set invoice public notes from client if value is set

This commit is contained in:
Hillel Coren 2017-06-19 10:50:31 +03:00
parent a6aa59ac2f
commit 2d146e63e2

View File

@ -14,7 +14,9 @@ function ViewModel(data) {
@if (!$invoice->id)
self.setDueDate();
// copy default note from the client to the invoice
model.invoice().public_notes(client.public_notes);
if (client.public_notes) {
model.invoice().public_notes(client.public_notes);
}
@endif
}