Import/Export - add support for quotes in definition names

This commit is contained in:
nathangray 2018-12-05 13:25:34 -07:00
parent 38f95f6196
commit ec43c42028
3 changed files with 6 additions and 3 deletions

View File

@ -54,7 +54,7 @@ use EGroupware\Api\Etemplate;
if($definition) if($definition)
{ {
$definition_obj = new importexport_definition($content['definition']); $definition_obj = new importexport_definition($definition);
} }
// Load application's translations // Load application's translations

View File

@ -251,7 +251,10 @@ class importexport_schedule_ui
} }
if (($title = $definition->get_title())) if (($title = $definition->get_title()))
{ {
$options['definition'][$title] = $title; $options['definition'][] = array(
'value' => $definition->get_identifier(),
'label' => $title
);
} }
unset($definition); unset($definition);
} }

View File

@ -21,7 +21,7 @@
<nextmatch-accountfilter empty_label="Owner" id="owner"/> <nextmatch-accountfilter empty_label="Owner" id="owner"/>
</row> </row>
<row class="row $row_cont[class]"> <row class="row $row_cont[class]">
<image src="${row}[type]" no_lang="1" onclick="window.open(egw::link('/index.php','menuaction=importexport.importexport_${row_cont[type]}_ui.{$row_cont[type]}_dialog&amp;appname=${row_cont[application]}&amp;definition=${row_cont[name]}'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;" class="lr_padding button"/> <image src="${row}[type]" no_lang="1" onclick="window.open(egw::link('/index.php','menuaction=importexport.importexport_${row_cont[type]}_ui.{$row_cont[type]}_dialog&amp;appname=${row_cont[application]}&amp;definition=${row_cont[definition_id]}'),'_blank','dependent=yes,width=850,height=440,scrollbars=yes,status=yes'); return false;" class="lr_padding button"/>
<description id="${row}[name]" no_lang="1" class="lr_padding"/> <description id="${row}[name]" no_lang="1" class="lr_padding"/>
<description id="${row}[application]" class="lr_padding"/> <description id="${row}[application]" class="lr_padding"/>
<listbox type="select-account" id="${row}[allowed_users]" no_lang="1" readonly="true" rows="5" empty_label='Private' class="lr_padding"/> <listbox type="select-account" id="${row}[allowed_users]" no_lang="1" readonly="true" rows="5" empty_label='Private' class="lr_padding"/>