mlinvoice.js miss form variable.

Started by pekkari, 03.05.17 - klo:18:24

Previous topic - Next topic

pekkari

Hi,

I decided to give it a go to update my local installation, and apart from finding the new compose dependency installation,
and the new requirement of building php with the xmlwriter plugin, everything went more or less ok. However, when I
try to print an invoice troubles comes in this form:

Uncaught ReferenceError: form is not defined

This comes from js/nlinvoice.js in function printInvoice, where obviosuly the var is not defined because it might
be brought by js.

A complete example of what the console error looks like:

mlinvoice.js?_=1493823686:54 Uncaught ReferenceError: form is not defined
    at Object.printInvoice (mlinvoice.js?_=1493823686:54)
    at HTMLAnchorElement.onclick (index.php?func=open_invoices&list=invoice&form=invoice&id=9:297)

Any help is appreciated.

José.

pekkari

Aghhh... From a fresh copy I spotted it was missing the following line from mlinvoice.js(35):

        var form = $('#admin_form');

Fair enough. Thanks for your efforts Ere!

José.

Ere Maijala

You got me scratching my head for a moment, but good that you found the problem. :)

Sorry about not communicating about the need to use composer better!

--Ere