CSV import: added a flag to disable the history tab (too long to display, when the feature is heavily used)

SVN:trunk[2263]
This commit is contained in:
Romain Quetiez
2012-10-16 14:31:15 +00:00
parent 020089b1d3
commit bddda8e256
2 changed files with 12 additions and 0 deletions

View File

@@ -205,6 +205,14 @@ class Config
'source_of_value' => '',
'show_in_conf_sample' => false,
),
'csv_import_history_display' => array(
'type' => 'bool',
'description' => 'Display the history tab in the import wizard',
'default' => true,
'value' => true,
'source_of_value' => '',
'show_in_conf_sample' => false,
),
'access_mode' => array(
'type' => 'integer',
'description' => 'Combination of flags (ACCESS_USER_WRITE | ACCESS_ADMIN_WRITE, or ACCESS_FULL)',

View File

@@ -1462,14 +1462,18 @@ $('#select_template_class').change( function() {
EOF
);
if (Utils::GetConfig()->Get('csv_import_history_display'))
{
$oPage->SetCurrentTabContainer('tabs1');
$oPage->SetCurrentTab(Dict::S('UI:History:BulkImports'));
BulkChange::DisplayImportHistory($oPage);
}
}
switch($iStep)
{
case 10:
// Case generated by BulkChange::DisplayImportHistory
$iChange = (int)utils::ReadParam('changeid', 0);
BulkChange::DisplayImportHistoryDetails($oPage, $iChange);
break;