Merge pull request #4264 from Keirua/fix/parcelles-agricoles

remove possibility to create carte with parcelle agricole
This commit is contained in:
Keirua 2019-08-30 09:37:54 +02:00 committed by GitHub
commit e47925e18e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 12 deletions

View file

@ -47,14 +47,6 @@ class Champs::CarteController < ApplicationController
end
end
if @champ.parcelles_agricoles?
parcelles_agricoles = ApiCartoService.generate_rpg(coordinates)
geo_areas += parcelles_agricoles.map do |parcelle_agricole|
parcelle_agricole[:source] = GeoArea.sources.fetch(:parcelle_agricole)
parcelle_agricole
end
end
selection_utilisateur = ApiCartoService.generate_selection_utilisateur(coordinates)
selection_utilisateur[:source] = GeoArea.sources.fetch(:selection_utilisateur)
geo_areas << selection_utilisateur

View file

@ -144,10 +144,6 @@ const TypeDeChamp = sortableElement(
label="Cadastres"
handler={updateHandlers.cadastres}
/>
<TypeDeChampCarteOption
label="Parcelles Agricoles"
handler={updateHandlers.parcelles_agricoles}
/>
</TypeDeChampCarteOptions>
<TypeDeChampRepetitionOptions
isVisible={isRepetition}