Skip to content

Commit

Permalink
Merge pull request #2251 from Strategy11/fix_views_issue_28
Browse files Browse the repository at this point in the history
Fix views issue 28
  • Loading branch information
Crabcyborg authored Feb 19, 2025
2 parents c426525 + 8a41dfa commit 78acf26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/models/fields/FrmFieldUserID.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ protected function prepare_import_value( $value, $atts ) {
* @return void
*/
public function sanitize_value( &$value ) {
if ( '' === $value ) {
// Allow for an empty User ID. Return early to prevent it from getting set to 0.
return;
}
FrmAppHelper::sanitize_value( 'intval', $value );
}
}

0 comments on commit 78acf26

Please sign in to comment.