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

SVN:1.2[2265]
This commit is contained in:
Romain Quetiez
2012-10-16 14:47:22 +00:00
parent 8da92c9251
commit fad77fb9fa
2 changed files with 12 additions and 0 deletions

View File

@@ -197,6 +197,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' => true,
),
'access_mode' => array(
'type' => 'integer',
'description' => 'Combination of flags (ACCESS_USER_WRITE | ACCESS_ADMIN_WRITE, or ACCESS_FULL)',

View File

@@ -1405,14 +1405,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;