fix: extract name from the pods object
This commit is contained in:
parent
8043cc7739
commit
e5b5ecaae6
2 changed files with 6 additions and 5 deletions
|
@ -161,9 +161,10 @@ class TablePress_ExportPods_View extends TablePress_View {
|
|||
<td class="column-2">
|
||||
<select id="tables-export-pod-name" name="export[pod_name]">
|
||||
<?php
|
||||
foreach ( $data['pod_names'] as $pod) {
|
||||
$selected = selected( $pod, $data['pod_name'], false );
|
||||
echo "<option{$selected} value=\"{$pod}\"?{$pod}</option>";
|
||||
foreach ( $data['pods'] as $pod) {
|
||||
$pod_name = $pod['name];
|
||||
$selected = selected( $pod_name, $data['pod_name'], false );
|
||||
echo "<option{$selected} value=\"{$pod_name}\"?{$pod_name}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue