| @@ -1358,8 +1358,9 @@ | ||
| 1358 | 1358 | $fields = array( |
| 1359 | 1359 | 'hotspot-type' => array( |
| 1360 | 1360 | 'title' => __('Hotspot-Type','wpvr'), |
| 1361 | 1361 | 'type' => 'info_type_select', |
| 1362 | + 'value' => $pano_hotspot['hotspot-type'] ?? 'info', | |
| 1362 | 1363 | ), |
| 1363 | 1364 | 'hotspot-url' => array( |
| 1364 | 1365 | 'title' => __('URL','wpvr'), |
| 1365 | 1366 | 'type' => 'info_url', |
| @@ -3686,9 +3687,9 @@ | ||
| 3686 | 3687 | </div> |
| 3687 | 3688 | |
| 3688 | 3689 | <select name="<?php echo esc_attr( $name ); ?>"> |
| 3689 | 3690 | <?php |
| 3690 | - $hotspot_type = 'info'; | |
| 3691 | + $hotspot_type = $val['value'] ?? 'info'; | |
| 3691 | 3692 | foreach ($default_type as $key => $value) { |
| 3692 | 3693 | echo sprintf("<option %s value='%s'>%s</option>\n", selected($key, $hotspot_type, false), esc_attr($key), esc_attr($value)); |
| 3693 | 3694 | } ?> |
| 3694 | 3695 | </select> |