diff --git a/web/API/targets.php b/web/API/targets.php index 61f4c78..e6b9540 100644 --- a/web/API/targets.php +++ b/web/API/targets.php @@ -20,7 +20,7 @@ $target->name->set($params["name"]); $target->type->set($params["type"]); $target->orbit->set($params["orbit"]); - $target->locator->set($params["locator"]); + $target->locator->set(json_decode($params["locator"])); $target->commit();