| @@ 1300-1301 (lines=2) @@ | ||
| 1297 | // Output types |
|
| 1298 | if ( in_array( $params->output, array( 'ids', 'objects', 'pods' ), true ) ) |
|
| 1299 | $sql[ 'select' ] = '`t`.`' . $table[ 'field_id' ] . '` AS `pod_item_id`'; |
|
| 1300 | elseif ( 'names' == $params->output && !empty( $table[ 'field_index' ] ) ) |
|
| 1301 | $sql[ 'select' ] = '`t`.`' . $table[ 'field_index' ] . '` AS `pod_item_index`, `t`.`' . $table[ 'field_id' ] . '` AS `pod_item_id`'; |
|
| 1302 | ||
| 1303 | if ( !empty( $params->params ) && is_array( $params->params ) ) { |
|
| 1304 | $where = $sql[ 'where' ]; |
|
| @@ 8029-8030 (lines=2) @@ | ||
| 8026 | $info[ 'meta_field_index' ] = pods_clean_name( $info[ 'meta_field_index' ], false, false ); |
|
| 8027 | $info[ 'meta_field_value' ] = pods_clean_name( $info[ 'meta_field_value' ], false, false ); |
|
| 8028 | ||
| 8029 | if ( empty( $info[ 'orderby' ] ) ) |
|
| 8030 | $info[ 'orderby' ] = '`t`.`' . $info[ 'field_index' ] . '`, `t`.`' . $info[ 'field_id' ] . '`'; |
|
| 8031 | ||
| 8032 | if ( 'table' == pods_var_raw( 'storage', $info[ 'pod' ] ) && !in_array( $object_type, array( 'pod', 'table' ) ) ) { |
|
| 8033 | $info[ 'join' ][ 'd' ] = 'LEFT JOIN `' . $info[ 'pod_table' ] . '` AS `d` ON `d`.`id` = `t`.`' . $info[ 'field_id' ] . '`'; |
|