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
|
@@ 1613-1618 (lines=6) @@
|
| 1610 |
|
|
| 1611 |
|
$fields[ $field[ 'name' ] ] = $field; |
| 1612 |
|
|
| 1613 |
|
if ( empty( $this->id ) && null !== $default_value ) { |
| 1614 |
|
$this->pod->row_override[ $field[ 'name' ] ] = $default_value; |
| 1615 |
|
} |
| 1616 |
|
elseif ( !empty( $this->id ) && null !== $value ) { |
| 1617 |
|
$this->pod->row[ $field[ 'name' ] ] = $value; |
| 1618 |
|
} |
| 1619 |
|
} |
| 1620 |
|
|
| 1621 |
|
unset( $form_fields ); // Cleanup |