mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 09:28:29 +01:00
Don't use msg as ID for step instructions, it gets grabbed by framework message stuff, and disappears.
Also, silence an error_log and avoid a warning
This commit is contained in:
parent
c1689c7328
commit
75bd91c79d
@ -664,7 +664,7 @@ class importexport_definitions_ui
|
|||||||
// init step10
|
// init step10
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$content['msg'] = $this->steps['wizard_step10'];
|
$content['text'] = $this->steps['wizard_step10'];
|
||||||
foreach ($this->plugins as $appname => $options)
|
foreach ($this->plugins as $appname => $options)
|
||||||
{
|
{
|
||||||
if($GLOBALS['egw_info']['user']['apps'][$appname] || $GLOBALS['egw_info']['user']['apps']['admin']) {
|
if($GLOBALS['egw_info']['user']['apps'][$appname] || $GLOBALS['egw_info']['user']['apps']['admin']) {
|
||||||
@ -713,7 +713,7 @@ class importexport_definitions_ui
|
|||||||
// init step20
|
// init step20
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$content['msg'] = $this->steps['wizard_step20'];
|
$content['text'] = $this->steps['wizard_step20'];
|
||||||
$config = config::read('phpgwapi');
|
$config = config::read('phpgwapi');
|
||||||
foreach ($this->plugins[$content['application']] as $type => $plugins) {
|
foreach ($this->plugins[$content['application']] as $type => $plugins) {
|
||||||
if($config['export_limit'] == 'no' && !$GLOBALS['egw_info']['user']['apps']['admin'] && $type == 'export') continue;
|
if($config['export_limit'] == 'no' && !$GLOBALS['egw_info']['user']['apps']['admin'] && $type == 'export') continue;
|
||||||
@ -787,7 +787,7 @@ class importexport_definitions_ui
|
|||||||
// init step21
|
// init step21
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$content['msg'] = $this->steps['wizard_step21'] . ($duplicate ? "\n".$content['duplicate_error'] : '');
|
$content['text'] = $this->steps['wizard_step21'] . ($duplicate ? "\n".$content['duplicate_error'] : '');
|
||||||
$content['step'] = 'wizard_step21';
|
$content['step'] = 'wizard_step21';
|
||||||
unset($content['duplicate_error']);
|
unset($content['duplicate_error']);
|
||||||
$preserv = $content;
|
$preserv = $content;
|
||||||
@ -828,7 +828,7 @@ class importexport_definitions_ui
|
|||||||
// init step90
|
// init step90
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$content['msg'] = $this->steps['wizard_step90'];
|
$content['text'] = $this->steps['wizard_step90'];
|
||||||
$content['step'] = 'wizard_step90';
|
$content['step'] = 'wizard_step90';
|
||||||
$preserv = $content;
|
$preserv = $content;
|
||||||
|
|
||||||
@ -864,7 +864,7 @@ class importexport_definitions_ui
|
|||||||
{
|
{
|
||||||
if(self::_debug) error_log('importexport.importexport_definitions_ui::wizard_finish->$content '.print_r($content,true));
|
if(self::_debug) error_log('importexport.importexport_definitions_ui::wizard_finish->$content '.print_r($content,true));
|
||||||
// Take out some UI leavings
|
// Take out some UI leavings
|
||||||
unset($content['msg']);
|
unset($content['text']);
|
||||||
unset($content['step']);
|
unset($content['step']);
|
||||||
unset($content['button']);
|
unset($content['button']);
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ class importexport_wizard_basic_export_csv
|
|||||||
// init step30
|
// init step30
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$content['msg'] = $this->steps['wizard_step30'];
|
$content['text'] = $this->steps['wizard_step30'];
|
||||||
$content['step'] = 'wizard_step30';
|
$content['step'] = 'wizard_step30';
|
||||||
$this->export_fields += array('all_custom_fields' => 'All custom fields');
|
$this->export_fields += array('all_custom_fields' => 'All custom fields');
|
||||||
$sel_options['field'] = $this->export_fields;
|
$sel_options['field'] = $this->export_fields;
|
||||||
@ -176,7 +176,7 @@ class importexport_wizard_basic_export_csv
|
|||||||
// init step40
|
// init step40
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$content['msg'] = $this->steps['wizard_step40'];
|
$content['text'] = $this->steps['wizard_step40'];
|
||||||
$content['step'] = 'wizard_step40';
|
$content['step'] = 'wizard_step40';
|
||||||
|
|
||||||
// If editing an existing definition, these will be in plugin_options
|
// If editing an existing definition, these will be in plugin_options
|
||||||
@ -264,7 +264,7 @@ class importexport_wizard_basic_export_csv
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Step 50 - filters
|
// Step 50 - filters
|
||||||
$content['msg'] = $this->steps['wizard_step80'];
|
$content['text'] = $this->steps['wizard_step80'];
|
||||||
$content['step'] = 'wizard_step80';
|
$content['step'] = 'wizard_step80';
|
||||||
$preserv = $content;
|
$preserv = $content;
|
||||||
unset ($preserv['button']);
|
unset ($preserv['button']);
|
||||||
|
@ -94,7 +94,7 @@ class importexport_wizard_basic_import_csv
|
|||||||
// init step30
|
// init step30
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$content['msg'] = $this->steps['wizard_step30'];
|
$content['text'] = $this->steps['wizard_step30'];
|
||||||
$content['step'] = 'wizard_step30';
|
$content['step'] = 'wizard_step30';
|
||||||
$preserv = $content;
|
$preserv = $content;
|
||||||
unset ($preserv['button']);
|
unset ($preserv['button']);
|
||||||
@ -124,7 +124,7 @@ class importexport_wizard_basic_import_csv
|
|||||||
// Process sample file for fields
|
// Process sample file for fields
|
||||||
if (($handle = fopen($GLOBALS['egw']->session->appsession('csvfile',$content['application']), "rb")) !== FALSE) {
|
if (($handle = fopen($GLOBALS['egw']->session->appsession('csvfile',$content['application']), "rb")) !== FALSE) {
|
||||||
$data = fgetcsv($handle, 8000, $content['fieldsep']);
|
$data = fgetcsv($handle, 8000, $content['fieldsep']);
|
||||||
error_log($data);
|
//error_log(array2string($data));
|
||||||
fclose($handle);
|
fclose($handle);
|
||||||
|
|
||||||
// Remove & forget file
|
// Remove & forget file
|
||||||
@ -191,7 +191,7 @@ class importexport_wizard_basic_import_csv
|
|||||||
// init step40
|
// init step40
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$content['msg'] = $this->steps['wizard_step40'];
|
$content['text'] = $this->steps['wizard_step40'];
|
||||||
$content['step'] = 'wizard_step40';
|
$content['step'] = 'wizard_step40';
|
||||||
|
|
||||||
// If editing an existing definition, these will be in plugin_options
|
// If editing an existing definition, these will be in plugin_options
|
||||||
@ -217,7 +217,7 @@ class importexport_wizard_basic_import_csv
|
|||||||
if(!$content['update_cats'] && $content['plugin_options']['update_cats']) {
|
if(!$content['update_cats'] && $content['plugin_options']['update_cats']) {
|
||||||
$content['update_cats'] = $content['plugin_options']['update_cats'];
|
$content['update_cats'] = $content['plugin_options']['update_cats'];
|
||||||
}
|
}
|
||||||
if(!array_key_exists('convert', $content) && array_key_exists('convert', $content['plugin_options'])) {
|
if(!array_key_exists('convert', $content) && is_array($content['plugin_options']) && array_key_exists('convert', $content['plugin_options'])) {
|
||||||
$content['convert'] = $content['plugin_options']['convert'];
|
$content['convert'] = $content['plugin_options']['convert'];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -302,7 +302,7 @@ class importexport_wizard_basic_import_csv
|
|||||||
// init step50
|
// init step50
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$content['msg'] = $this->steps['wizard_step50'];
|
$content['text'] = $this->steps['wizard_step50'];
|
||||||
$content['step'] = 'wizard_step50';
|
$content['step'] = 'wizard_step50';
|
||||||
|
|
||||||
$content['mapping'] = array(false);
|
$content['mapping'] = array(false);
|
||||||
@ -375,7 +375,7 @@ class importexport_wizard_basic_import_csv
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// init step55
|
// init step55
|
||||||
$content['msg'] = $this->steps['wizard_step55'];
|
$content['text'] = $this->steps['wizard_step55'];
|
||||||
$content['step'] = 'wizard_step55';
|
$content['step'] = 'wizard_step55';
|
||||||
|
|
||||||
if(!$content['conditions'] && $content['plugin_options']['conditions']) {
|
if(!$content['conditions'] && $content['plugin_options']['conditions']) {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<row>
|
<row>
|
||||||
<grid overflow="auto" id="mapping">
|
<grid overflow="auto" id="mapping">
|
||||||
<columns>
|
<columns>
|
||||||
<column/>
|
<column width="4ex"/>
|
||||||
<column/>
|
<column/>
|
||||||
<column/>
|
<column/>
|
||||||
<column/>
|
<column/>
|
||||||
@ -21,14 +21,12 @@
|
|||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row class="th">
|
<row class="th">
|
||||||
<description/>
|
|
||||||
<description/>
|
<description/>
|
||||||
<description value="CSV Field"/>
|
<description value="CSV Field"/>
|
||||||
<description value="Target Field"/>
|
<description value="Target Field"/>
|
||||||
<description value="Translation"/>
|
<description value="Translation"/>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<description value="${row}[index]" no_lang="1"/>
|
|
||||||
<description value="${row_cont[index]}" no_lang="1"/>
|
<description value="${row_cont[index]}" no_lang="1"/>
|
||||||
<description value="{$row_cont[title]}" no_lang="1"/>
|
<description value="{$row_cont[title]}" no_lang="1"/>
|
||||||
<menulist>
|
<menulist>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<row valign="top">
|
<row valign="top">
|
||||||
<hbox no_lang="1">
|
<hbox no_lang="1">
|
||||||
<vbox width="100%">
|
<vbox width="100%">
|
||||||
<description/>
|
<description id="text"/>
|
||||||
<box class="wizard_content">
|
<box class="wizard_content">
|
||||||
<template id="@wizard_content"/>
|
<template id="@wizard_content"/>
|
||||||
</box>
|
</box>
|
||||||
@ -31,9 +31,9 @@
|
|||||||
</grid>
|
</grid>
|
||||||
<styles>
|
<styles>
|
||||||
.wizard_content {
|
.wizard_content {
|
||||||
height: 365px;
|
height: 345px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-height:365px;
|
max-height:345px;
|
||||||
overflow:auto;
|
overflow:auto;
|
||||||
}
|
}
|
||||||
</styles>
|
</styles>
|
||||||
|
Loading…
Reference in New Issue
Block a user