Skip to content
Snippets Groups Projects
Commit a3d016b3 authored by dyszczo's avatar dyszczo
Browse files

fixed formatting

parent 2771ad38
No related branches found
No related tags found
1 merge request!4dont save empty keys
Pipeline #4738 passed
...@@ -172,7 +172,9 @@ class FormWithFields implements Form, ContainerForm, FieldProvider { ...@@ -172,7 +172,9 @@ class FormWithFields implements Form, ContainerForm, FieldProvider {
foreach ( $this->get_fields() as $field ) { foreach ( $this->get_fields() as $field ) {
$data_key = $field->get_name(); $data_key = $field->get_name();
if( empty($data_key) ) continue; if ( empty( $data_key ) ) {
continue;
}
if ( ! isset( $this->updated_data[ $data_key ] ) ) { if ( ! isset( $this->updated_data[ $data_key ] ) ) {
$container->set( $data_key, $field->get_default_value() ); $container->set( $data_key, $field->get_default_value() );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment