allow to partially import broken configs - show message with error list and import only correct values

This commit is contained in:
Crack
2010-07-13 22:59:21 +02:00
parent 57a8d902f4
commit e7dd9a7c67
2 changed files with 56 additions and 7 deletions

View File

@@ -46,10 +46,10 @@ if (!$form_display->process(false)) {
if ($form_display->hasErrors()) {
// form has errors
?>
<fieldset>
<div class="warning config-form">
<b><?php echo __('Submitted form contains errors') ?></b>
<?php $form_display->displayErrors(); ?>
</fieldset>
</div>
<?php
$form_display->display(true, true);
} else {
@@ -66,6 +66,7 @@ if (!$form_display->process(false)) {
$form_display->display(true, true);
}
}
// todo: remove debug
$GLOBALS['error_handler']->dispAllErrors();
/**