Selaa lähdekoodia

FIX Export of website generates a package that contains a sql error

Laurent Destailleur 3 vuotta sitten
vanhempi
commit
bbf219fd7b
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      htdocs/website/class/website.class.php

+ 2 - 2
htdocs/website/class/website.class.php

@@ -1091,8 +1091,8 @@ class Website extends CommonObject
 			}
 		}
 
-		$line .= "\n-- For Dolibarr v14+ --\n";
-		$line .= "UPDATE llx_website SET fk_default_lang = '".$this->db->escape($this->fk_default_lang)."' WHERE rowid = __WEBSITE_ID__;\n";
+		$line = "\n-- For Dolibarr v14+ --;\n";
+		$line .= "UPDATE llx_website SET lang = '".$this->db->escape($this->fk_default_lang)."' WHERE rowid = __WEBSITE_ID__;\n";
 		$line .= "UPDATE llx_website SET otherlang = '".$this->db->escape($this->otherlang)."' WHERE rowid = __WEBSITE_ID__;\n";
 		$line .= "\n";
 		fputs($fp, $line);