|
@@ 1142-1143 (lines=2) @@
|
| 1139 |
|
$attributes[ 'type' ] = 'text'; |
| 1140 |
|
if ( !isset( $attributes[ 'options' ][ 'date_format_type' ] ) ) |
| 1141 |
|
$attributes[ 'options' ][ 'date_format_type' ] = 'date'; |
| 1142 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related' ] ) ) |
| 1143 |
|
$attributes[ 'related' ] = false; |
| 1144 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_id' ] ) ) |
| 1145 |
|
$attributes[ 'related_id' ] = 'id'; |
| 1146 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_field' ] ) ) |
|
@@ 1144-1145 (lines=2) @@
|
| 1141 |
|
$attributes[ 'options' ][ 'date_format_type' ] = 'date'; |
| 1142 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related' ] ) ) |
| 1143 |
|
$attributes[ 'related' ] = false; |
| 1144 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_id' ] ) ) |
| 1145 |
|
$attributes[ 'related_id' ] = 'id'; |
| 1146 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_field' ] ) ) |
| 1147 |
|
$attributes[ 'related_field' ] = 'name'; |
| 1148 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_multiple' ] ) ) |
|
@@ 1146-1147 (lines=2) @@
|
| 1143 |
|
$attributes[ 'related' ] = false; |
| 1144 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_id' ] ) ) |
| 1145 |
|
$attributes[ 'related_id' ] = 'id'; |
| 1146 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_field' ] ) ) |
| 1147 |
|
$attributes[ 'related_field' ] = 'name'; |
| 1148 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_multiple' ] ) ) |
| 1149 |
|
$attributes[ 'related_multiple' ] = false; |
| 1150 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_sql' ] ) ) |
|
@@ 1148-1149 (lines=2) @@
|
| 1145 |
|
$attributes[ 'related_id' ] = 'id'; |
| 1146 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_field' ] ) ) |
| 1147 |
|
$attributes[ 'related_field' ] = 'name'; |
| 1148 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_multiple' ] ) ) |
| 1149 |
|
$attributes[ 'related_multiple' ] = false; |
| 1150 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_sql' ] ) ) |
| 1151 |
|
$attributes[ 'related_sql' ] = false; |
| 1152 |
|
if ( 'related' == $attributes[ 'type' ] && ( is_array( $attributes[ 'related' ] ) || strpos( $attributes[ 'related' ], ',' ) ) ) { |
|
@@ 1150-1151 (lines=2) @@
|
| 1147 |
|
$attributes[ 'related_field' ] = 'name'; |
| 1148 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_multiple' ] ) ) |
| 1149 |
|
$attributes[ 'related_multiple' ] = false; |
| 1150 |
|
if ( 'related' != $attributes[ 'type' ] || !isset( $attributes[ 'related_sql' ] ) ) |
| 1151 |
|
$attributes[ 'related_sql' ] = false; |
| 1152 |
|
if ( 'related' == $attributes[ 'type' ] && ( is_array( $attributes[ 'related' ] ) || strpos( $attributes[ 'related' ], ',' ) ) ) { |
| 1153 |
|
if ( !is_array( $attributes[ 'related' ] ) ) { |
| 1154 |
|
$attributes[ 'related' ] = @explode( ',', $attributes[ 'related' ] ); |