Skip to content

Commit

Permalink
Fixed hidden payment attributes if it's no array
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Apr 22, 2020
1 parent 2965aa7 commit ff8edce
Showing 1 changed file with 9 additions and 6 deletions.
Expand Up @@ -68,12 +68,15 @@

<?php foreach( $this->get( 'standardProcessHidden', [] ) as $id => $item ) : ?>
<?php foreach( (array) $item->getDefault() as $key => $value ) : ?>

<input type="hidden" id="process-<?= $id; ?>"
name="<?= $enc->attr( $this->formparam( [$item->getInternalCode(), $key], $prefix ) ); ?>"
value="<?= $enc->attr( $value ); ?>"
/>

<?php if( is_array( $item->getDefault() ) ) : ?>
<input type="hidden" id="process-<?= $id; ?>" value="<?= $enc->attr( $value ); ?>"
name="<?= $enc->attr( $this->formparam( [$item->getInternalCode(), $key], $prefix ) ); ?>"
/>
<?php else : ?>
<input type="hidden" id="process-<?= $id; ?>" value="<?= $enc->attr( $value ); ?>"
name="<?= $enc->attr( $this->formparam( $item->getInternalCode(), $prefix ) ); ?>"
/>
<?php endif; ?>
<?php endforeach; ?>
<?php endforeach; ?>

Expand Down

0 comments on commit ff8edce

Please sign in to comment.