Skip to content

Commit

Permalink
Fix locale value in EnrichmentController (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
philboeselager committed Aug 19, 2020
1 parent 3b3bfdc commit 3646fe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions grails-app/controllers/ygor/EnrichmentController.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package ygor

import de.hbznrw.ygor.processing.SendPackageThreadGokb
import de.hbznrw.ygor.processing.SendTitlesThreadGokb
import de.hbznrw.ygor.processing.YgorProcessingException
import de.hbznrw.ygor.readers.KbartReader
import grails.converters.JSON
Expand Down Expand Up @@ -337,7 +336,7 @@ class EnrichmentController implements ControllersHelper{
def gokbPassword = params.gokbPassword
// send package with integrated title data
String uri = getDestinationUri(grailsApplication, Enrichment.FileType.PACKAGE, enrichment.addOnly)
def locale = RequestContextUtils.getLocale(request).toString()
def locale = RequestContextUtils.getLocale(request).getLanguage()
SendPackageThreadGokb sendPackageThreadGokb = new SendPackageThreadGokb(grailsApplication, enrichment, uri,
gokbUsername, gokbPassword, locale, true)
UploadJob uploadJob = new UploadJob(Enrichment.FileType.PACKAGE, sendPackageThreadGokb)
Expand Down
1 change: 1 addition & 0 deletions src/groovy/de/hbznrw/ygor/export/GokbExporter.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package de.hbznrw.ygor.export

import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.databind.node.ArrayNode
import com.fasterxml.jackson.databind.node.JsonNodeFactory
import com.fasterxml.jackson.databind.node.ObjectNode
Expand Down

0 comments on commit 3646fe6

Please sign in to comment.