Skip to content

Commit f233db3

Browse files
Release 5.2.3
2 parents 29d216b + 9826382 commit f233db3

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
version "5.2.2"
2+
version "5.2.3"
33
group "au.org.ala"
44
}
55

grails-app/controllers/au/org/ala/specieslist/EditorController.groovy

-8
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ class EditorController {
165165
if (sli) {
166166
// check for changed values
167167
def keys = SpeciesListKVP.executeQuery("select distinct key from SpeciesListKVP where dataResourceUid= :dataResourceUid", [dataResourceUid: sli.dataResourceUid])
168-
def kvpRemoveList = [] as Set
169168
def changed = false
170169

171170
keys.each { key ->
@@ -179,7 +178,6 @@ class EditorController {
179178
if (kvp) {
180179
// old value was not empty - remove from this SLI
181180
sli.removeFromKvpValues(kvp)
182-
kvpRemoveList.add(kvp)
183181
sl.lastUploaded = new Date()
184182
}
185183

@@ -203,12 +201,6 @@ class EditorController {
203201
}
204202
}
205203

206-
// remove KVP items that have changed (need to do this separately to avoid java.util.ConcurrentModificationException)
207-
kvpRemoveList.each {
208-
log.debug "Removing outdated kvp value: ${it}"
209-
it.delete()
210-
}
211-
212204
//check if name information has changed
213205
if (params.rawScientificName.trim() != sli.rawScientificName.trim()) {
214206
log.debug "rawScientificName is different: " + params.rawScientificName + " VS " + sli.rawScientificName

grails-app/services/au/org/ala/specieslist/HelperService.groovy

+8
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,14 @@ class HelperService {
953953
scrollableResults.close()
954954
String msg = "${listDRId} [ ${totalRows} ] completed, time cost : ${TimeCategory.minus(new Date(), startProcessing)}"
955955
log.info(msg)
956+
957+
SpeciesList speciesListToUpdate = session.get(SpeciesList.class, speciesList.id)
958+
if (speciesListToUpdate != null) {
959+
speciesListToUpdate.lastMatched = new Date();
960+
session.update(speciesListToUpdate)
961+
session.flush()
962+
}
963+
956964
message = [status: 0, message: msg]
957965
} catch (Exception e) {
958966
session.getTransaction().rollback()

grails-app/views/speciesListItem/list.gsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@
10351035
</div>
10361036
</td>
10371037
<td class="rawScientificName">
1038-
<g:if test="${fieldValue(bean: result, field: "rawScientificName") ==~ /.*((http|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-]))*/}">
1038+
<g:if test="${fieldValue(bean: result, field: 'rawScientificName') ==~ /.*((http|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])*)/}">
10391039
<a href="${fieldValue(bean: result, field: "rawScientificName")}" target="_blank">${fieldValue(bean: result, field: "rawScientificName")}</a>
10401040
</g:if>
10411041
<g:else>

0 commit comments

Comments
 (0)