1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Only set invoice public notes from client if value is set

This commit is contained in:
Hillel Coren 2017-06-19 10:51:00 +03:00
parent 943c658e00
commit 41923a2e8b

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
}