Skip to content

Commit

Permalink
Remove old_name when adding a field
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Sep 10, 2023
1 parent 1476623 commit 04ff5b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/PodsAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -3029,6 +3029,10 @@ public function add_field( $params, $table_operation = true, $sanitized = false,
$params->is_new = true;
$params->overwrite = false;

if ( isset( $params->old_name ) ) {
unset( $params->old_name );
}

return $this->save_field( $params, $table_operation, $sanitized, $db );
}

Expand Down

0 comments on commit 04ff5b0

Please sign in to comment.