diff --git a/ground/controllers/JsonController.php b/ground/controllers/JsonController.php index 759d9c1..b1270c7 100644 --- a/ground/controllers/JsonController.php +++ b/ground/controllers/JsonController.php @@ -183,6 +183,9 @@ class JsonController extends Controller 'ord' => $key, )); Image::createAllSizes($photo); + if ($ordering[$key] == 'FILE') { + PhotoLinks::addLink($photo, $_POST['photoLinks'][$key]); + } } $point = Point::model()->getByPK($id); diff --git a/ground/views/modals/addPoint.php b/ground/views/modals/addPoint.php index 5817901..061e7f4 100644 --- a/ground/views/modals/addPoint.php +++ b/ground/views/modals/addPoint.php @@ -64,6 +64,7 @@