Discard loading of chart of account

This commit is contained in:
Laurent Destailleur 2017-10-22 23:52:50 +02:00
parent 3ccf782b41
commit ead08c17d8

View File

@ -514,6 +514,8 @@ if ($action == "set")
{
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.
//print 'x'.$file.'-'.$createdata.'<br>';
if (is_numeric($createdata) || preg_match('/'.preg_quote($createdata).'/i',$file))
{