Typo in js file breaks Supplier and Contracts Editor
Posted: 08 Jun 2023, 12:36
In the file editors/enterprise/supplier-editor/core_supplier_editor.js for EssentialCloud viewer v6.18.1, an error is thrown on loading:
line 2264 of that file contains a reference to the "aUpp" object:
Comparing this with line 2279, it seems this should be "aSupp":
Code: Select all
core_supplier_editor.js:2264 Uncaught (in promise) ReferenceError: aSupp is not defined
at core_supplier_editor.js:2264:76
at Array.find (<anonymous>)
at initSupplierEditorTab (core_supplier_editor.js:2264:54)
at core_supplier_editor.js:4082:9
Code: Select all
currentSupplier = supplierJSON[ 'suppliers'].find(aUpp => aSupp.id == initialSupplierId);
Code: Select all
currentSupplier = supplierJSON[ 'suppliers'].find(aSupp => aSupp.id == supplierId);