@esfaenza/extensions 15.2.19 → 15.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -971,7 +971,7 @@ class ExportService {
|
|
|
971
971
|
* @param {CsvHeaders} headers Contenitore degli header, verrà riempito da questa funzione
|
|
972
972
|
* @param {LocalizationService} loc Servizio di localizzazione che traduce tutti i nomi che può
|
|
973
973
|
*/
|
|
974
|
-
parseObject(obj, prop, headers, loc) {
|
|
974
|
+
parseObject(obj, prop, headers, columnsSelection, loc) {
|
|
975
975
|
//se questa proprietà ha un navigator significa che deriva da un oggetto interno, recupero il valore in questa fase dato che prima non ce l'ho
|
|
976
976
|
let valuenavigator = obj[prop + csvValueNavigator];
|
|
977
977
|
//Es. di valuenavigator obj.subobj.subsubobj.property
|
|
@@ -980,7 +980,7 @@ class ExportService {
|
|
|
980
980
|
if (!loc) {
|
|
981
981
|
let type = obj[prop + csvValueType];
|
|
982
982
|
let proto = new type();
|
|
983
|
-
loc = proto[locProperty];
|
|
983
|
+
loc = proto[locProperty] ? this.lc.generateFromType(proto[locProperty]) : null;
|
|
984
984
|
}
|
|
985
985
|
//Mi clono l'oggetto originale per non uccidergli i riferimenti
|
|
986
986
|
let clone = JSON.parse(JSON.stringify(obj));
|