classes/Pods.php 1 location
|
@@ 3439-3444 (lines=6) @@
|
| 3436 |
|
|
| 3437 |
|
$fields[ $field[ 'name' ] ] = $field; |
| 3438 |
|
|
| 3439 |
|
if ( empty( $this->id ) && null !== $default_value ) { |
| 3440 |
|
$this->row_override[ $field[ 'name' ] ] = $default_value; |
| 3441 |
|
} |
| 3442 |
|
elseif ( !empty( $this->id ) && null !== $value ) { |
| 3443 |
|
$this->row[ $field[ 'name' ] ] = $value; |
| 3444 |
|
} |
| 3445 |
|
} |
| 3446 |
|
|
| 3447 |
|
unset( $form_fields ); // Cleanup |
classes/PodsUI.php 1 location
|
@@ 1633-1638 (lines=6) @@
|
| 1630 |
|
|
| 1631 |
|
$fields[ $field[ 'name' ] ] = $field; |
| 1632 |
|
|
| 1633 |
|
if ( empty( $this->id ) && null !== $default_value ) { |
| 1634 |
|
$this->pod->row_override[ $field[ 'name' ] ] = $default_value; |
| 1635 |
|
} |
| 1636 |
|
elseif ( !empty( $this->id ) && null !== $value ) { |
| 1637 |
|
$this->pod->row[ $field[ 'name' ] ] = $value; |
| 1638 |
|
} |
| 1639 |
|
} |
| 1640 |
|
|
| 1641 |
|
unset( $form_fields ); // Cleanup |