Commit 10441459 authored by François Agneray's avatar François Agneray
Browse files

Fixed bug cast cone-search ra, dec, radius (float)

parent de89156e
Pipeline #4956 passed with stages
in 5 minutes and 14 seconds
......@@ -59,7 +59,7 @@ curl -d '{"label":"Spectra graph","value":"spectra_graph","display":20,"select_n
curl -d '{"label":"Test","dbname":"anis_test","dbtype":"pdo_pgsql","dbhost":"db","dbport":5432,"dblogin":"anis","dbpassword":"anis"}' --header 'Content-Type: application/json' -X POST http://localhost/database
# Add default instance
curl -d '{"name":"default","label":"Default instance","client_url":"http://localhost:4200","config":{"search":true,"search_multiple":true}}' --header 'Content-Type: application/json' -X POST http://localhost/instance
curl -d '{"name":"default","label":"Default instance","client_url":"http://localhost:4200","config":{"authentication":{"allowed":false},"search":{"allowed":true},"search_multiple":{"allowed":false},"documentation":{"allowed":false}}}' --header 'Content-Type: application/json' -X POST http://localhost/instance
# Add ANIS, SVOM and IRIS projects
curl -d '{"name":"anis_project","label":"Anis Project Test","description":"Project used for testing","link":"http://project.com","manager":"M. Durand","id_database":1}' --header 'Content-Type: application/json' -X POST http://localhost/project
......
......@@ -190,6 +190,9 @@ final class SearchAction extends AbstractAction
}
list($ra, $dec, $radius) = explode(':', $param);
$ra = floatval($ra);
$dec = floatval($dec);
$radius = floatval($radius);
$coneSearchConfig = $dataset->getConfig()['cone_search'];
if ($coneSearchConfig['enabled'] !== true) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment