classes/Pods.php 1 location
|
@@ 3424-3429 (lines=6) @@
|
| 3421 |
|
|
| 3422 |
|
$fields[ $field[ 'name' ] ] = $field; |
| 3423 |
|
|
| 3424 |
|
if ( empty( $this->id ) && null !== $default_value ) { |
| 3425 |
|
$this->row_override[ $field[ 'name' ] ] = $default_value; |
| 3426 |
|
} |
| 3427 |
|
elseif ( !empty( $this->id ) && null !== $value ) { |
| 3428 |
|
$this->row[ $field[ 'name' ] ] = $value; |
| 3429 |
|
} |
| 3430 |
|
} |
| 3431 |
|
|
| 3432 |
|
unset( $form_fields ); // Cleanup |
classes/PodsUI.php 1 location
|
@@ 1627-1632 (lines=6) @@
|
| 1624 |
|
|
| 1625 |
|
$fields[ $field[ 'name' ] ] = $field; |
| 1626 |
|
|
| 1627 |
|
if ( empty( $this->id ) && null !== $default_value ) { |
| 1628 |
|
$this->pod->row_override[ $field[ 'name' ] ] = $default_value; |
| 1629 |
|
} |
| 1630 |
|
elseif ( !empty( $this->id ) && null !== $value ) { |
| 1631 |
|
$this->pod->row[ $field[ 'name' ] ] = $value; |
| 1632 |
|
} |
| 1633 |
|
} |
| 1634 |
|
|
| 1635 |
|
unset( $form_fields ); // Cleanup |