CoreBOSBB

Full Version: Unable to import a modified module.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all!

I'm getting the error "Invalid file provided for module import! Try Again." when trying to import a module after modifiying its fields in CoreBOS and exporting it. Any idea what may be causing the error?
The accents in the XML file where at fault at the end.

This solved the issue:
Code:
diff
diff --git a/vtlib/Vtiger/PackageExport.php b/vtlib/Vtiger/PackageExport.php
index 28048f74a..bb1eaf91b 100644
--- a/vtlib/Vtiger/PackageExport.php
+++ b/vtlib/Vtiger/PackageExport.php
@@ -463,7 +463,7 @@ class Vtiger_PackageExport {
                        $this->outputNode($fieldresultrow['columnname'], 'columnname');
                        $this->outputNode($fieldresultrow['tablename'], 'tablename');
                        $this->outputNode($fieldresultrow['generatedtype'], 'generatedtype');
-                       $this->outputNode($fieldresultrow['fieldlabel'], 'fieldlabel');
+                       $this->outputNode('<![CDATA['.$fieldresultrow['fieldlabel'].']]>', 'fieldlabel');
                        $this->outputNode($fieldresultrow['readonly'], 'readonly');
                        $this->outputNode($fieldresultrow['presence'], 'presence');
                       $this->outputNode($fieldresultrow['defaultvalue'], 'defaultvalue');

Thanks Joe!