Fix loading data after first install

This commit is contained in:
Laurent Destailleur
2017-12-11 14:56:12 +01:00
parent 8189be0ac4
commit 1593792cdd

View File

@@ -514,7 +514,7 @@ if ($action == "set")
{ {
if (preg_match('/\.sql$/i',$file) && preg_match('/^llx_/i',$file)) if (preg_match('/\.sql$/i',$file) && preg_match('/^llx_/i',$file))
{ {
if (preg_match('/^llx_accounting_account_/')) continue; // We discard data file of chart of account. Will be loaded when a chart is selected. if (preg_match('/^llx_accounting_account_/',$file)) continue; // We discard data file of chart of account. Will be loaded when a chart is selected.
//print 'x'.$file.'-'.$createdata.'<br>'; //print 'x'.$file.'-'.$createdata.'<br>';
if (is_numeric($createdata) || preg_match('/'.preg_quote($createdata).'/i',$file)) if (is_numeric($createdata) || preg_match('/'.preg_quote($createdata).'/i',$file))