@@ -21,8 +21,7 @@ discard block |
||
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | |
| 24 | -$build = function( array $attrItems, $id ) use ( $fields ) |
|
| 25 | -{ |
|
| 24 | +$build = function( array $attrItems, $id ) use ( $fields ) { |
|
| 26 | 25 | $result = []; |
| 27 | 26 | $type = 'criteria/attribute'; |
| 28 | 27 | |
@@ -58,8 +57,11 @@ discard block |
||
| 58 | 57 | <?php if( isset( $this->errors ) ) : ?> |
| 59 | 58 | , "errors": <?= $this->partial( $this->config( $this->get( 'partial-errors', 'admin/jsonadm/partials/template-errors' ), 'partials/errors-standard' ), array( 'errors' => $this->errors ) ); ?> |
| 60 | 59 | |
| 61 | - <?php else : ?> |
|
| 62 | - , "data": <?= json_encode( $build( $configItems, $this->param( 'id' ) ), $options ); ?> |
|
| 60 | + <?php else { |
|
| 61 | + : ?> |
|
| 62 | + , "data": <?= json_encode( $build( $configItems, $this->param( 'id' ) ), $options ); |
|
| 63 | +} |
|
| 64 | +?> |
|
| 63 | 65 | |
| 64 | 66 | <?php endif; ?> |
| 65 | 67 | } |