|
@@ 1162-1163 (lines=2) @@
|
| 1159 |
|
$attributes[ 'type' ] = 'text'; |
| 1160 |
|
if ( !isset( $attributes[ 'options' ][ 'date_format_type' ] ) ) |
| 1161 |
|
$attributes[ 'options' ][ 'date_format_type' ] = 'date'; |
| 1162 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related' ] ) ) |
| 1163 |
|
$attributes[ 'related' ] = false; |
| 1164 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_id' ] ) ) |
| 1165 |
|
$attributes[ 'related_id' ] = 'id'; |
| 1166 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_field' ] ) ) |
|
@@ 1164-1165 (lines=2) @@
|
| 1161 |
|
$attributes[ 'options' ][ 'date_format_type' ] = 'date'; |
| 1162 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related' ] ) ) |
| 1163 |
|
$attributes[ 'related' ] = false; |
| 1164 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_id' ] ) ) |
| 1165 |
|
$attributes[ 'related_id' ] = 'id'; |
| 1166 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_field' ] ) ) |
| 1167 |
|
$attributes[ 'related_field' ] = 'name'; |
| 1168 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_multiple' ] ) ) |
|
@@ 1166-1167 (lines=2) @@
|
| 1163 |
|
$attributes[ 'related' ] = false; |
| 1164 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_id' ] ) ) |
| 1165 |
|
$attributes[ 'related_id' ] = 'id'; |
| 1166 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_field' ] ) ) |
| 1167 |
|
$attributes[ 'related_field' ] = 'name'; |
| 1168 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_multiple' ] ) ) |
| 1169 |
|
$attributes[ 'related_multiple' ] = false; |
| 1170 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_sql' ] ) ) |
|
@@ 1168-1169 (lines=2) @@
|
| 1165 |
|
$attributes[ 'related_id' ] = 'id'; |
| 1166 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_field' ] ) ) |
| 1167 |
|
$attributes[ 'related_field' ] = 'name'; |
| 1168 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_multiple' ] ) ) |
| 1169 |
|
$attributes[ 'related_multiple' ] = false; |
| 1170 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_sql' ] ) ) |
| 1171 |
|
$attributes[ 'related_sql' ] = false; |
| 1172 |
|
if ( 'related' == $attributes[ 'type' ] && ( is_array( $attributes[ 'related' ] ) || strpos( $attributes[ 'related' ], ',' ) ) ) { |
|
@@ 1170-1171 (lines=2) @@
|
| 1167 |
|
$attributes[ 'related_field' ] = 'name'; |
| 1168 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_multiple' ] ) ) |
| 1169 |
|
$attributes[ 'related_multiple' ] = false; |
| 1170 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_sql' ] ) ) |
| 1171 |
|
$attributes[ 'related_sql' ] = false; |
| 1172 |
|
if ( 'related' == $attributes[ 'type' ] && ( is_array( $attributes[ 'related' ] ) || strpos( $attributes[ 'related' ], ',' ) ) ) { |
| 1173 |
|
if ( !is_array( $attributes[ 'related' ] ) ) { |
| 1174 |
|
$attributes[ 'related' ] = @explode( ',', $attributes[ 'related' ] ); |