Skip to content

Commit

Permalink
Fix save issue with property keys
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare committed Aug 10, 2016
1 parent 26103a8 commit 4ee96aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/class-papi-core-data-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ protected function prepare_properties_data( array $data = [], $post_id = 0 ) {
}

foreach ( $data as $key => $item ) {
if ( papi_is_property_type_key( $key ) ) {
continue;
}

$property = papi_get_property_type( $item['type'] );

unset( $data[ $key ] );
Expand Down

0 comments on commit 4ee96aa

Please sign in to comment.