{if is_array($result)}
{tr msg='Result'}
{if !empty($result.errors)}
{tr msg='Errors'}
{foreach $result.errors as $error}
Object {$error@iteration}
{if !empty($error.errors.globals)}
{foreach $error.errors.globals as $e}
- {$e}
{/foreach}
{/if}
{foreach $error.data as $key => $val}
-
{$key} :
{if empty($val)}{tr msg='No value'}{else}{LSimport_implodeValues values=$val}{/if}
{if isset($error.errors.attrs[$key])}
{foreach $error.errors.attrs.$key as $e}
- {$e}
{/foreach}
{/if}
{/foreach}
{foreach $error.errors.attrs as $a => $es}
{if !in_array($a,$error.data)}
-
{$a} :
{foreach $es as $e}
- {$e}
{/foreach}
{/if}
{/foreach}
{/foreach}
{/if}
{tr msg='Imported objects'} ({count($result.imported)})
{foreach $result.imported as $dn => $name}
- {$name}
{foreachelse}
- {tr msg='No imported object'}
{/foreach}
{if !empty($result.updated)}
{tr msg='Updated objects'} ({count($result.updated)})
{foreach $result.updated as $dn => $name}
- {$name}
{/foreach}
{/if}
{/if}
{/block}