Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Nom de table + #87
Browse files Browse the repository at this point in the history
  • Loading branch information
pprev94 committed Jul 12, 2022
1 parent 6b9c2c1 commit b19e568
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/js/components/pyramid-add-page/pyramid-composition.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class PyramidComposition {
}

/**
* Construction d'un accordeon'
* Construction d'un accordeon
*
* @param Object relation
* @param integer num
Expand Down Expand Up @@ -148,6 +148,8 @@ export class PyramidComposition {
.append($spanInfos);
html += $span.prop('outerHTML');
$a.append(html);
} else {
$accordeon.find('.o-accordion__header').text(relation.name);
}

// Les attributs
Expand Down
5 changes: 5 additions & 0 deletions src/Controller/PyramidController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ public function add($datastoreId, Request $request)
if (Response::HTTP_NOT_FOUND == $ex->getCode()) {
$this->addFlash('error', "La donnée en entrée n'existe pas");
}
return $this->redirectToRoute('plage_datastore_view', ['datastoreId' => $datastoreId]);
}

// Verification de l'existence de l'extent
if (! array_key_exists('extent', $vectordb)) {
$this->addFlash('error', "L'étendue géographique des données n'a pas pu être déterminée. Il n'est pas possible de générer une pyramide de tuiles vectorielles à partir de ces données.");
return $this->redirectToRoute('plage_datastore_view', ['datastoreId' => $datastoreId]);
}

Expand Down

0 comments on commit b19e568

Please sign in to comment.