Skip to content

Commit c614888

Browse files
Merge 25.7 to develop
2 parents 6d4f276 + 8564045 commit c614888

6 files changed

Lines changed: 14 additions & 6 deletions

File tree

WNPRC_Compliance/src/org/labkey/wnprc_compliance/view/enterTB.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,14 +455,14 @@
455455
(function() {
456456
measlesForm.clear = function() {
457457
measlesForm.notes('');
458-
measlesForm.date('');
458+
measlesForm.date(moment());
459459
measlesForm.disabled(true);
460460
};
461461
measlesForm.$element.collapse({toggle: true});
462462
measlesForm.disabled.subscribe(function(val) {
463463
if (val) {
464464
measlesForm.notes('');
465-
measlesForm.date('');
465+
measlesForm.date(moment());
466466
}
467467
measlesForm.$element.collapse(val ? 'hide' : 'show');
468468
});

WNPRC_Compliance/src/org/labkey/wnprc_compliance/view/uploadAccessReport.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
_safe.module = module;
3333
module = undefined;
3434
</script>
35-
<script type="text/javascript" src="<%= getContextPath()%>/compliance/dropzone.js"></script>
35+
<script type="text/javascript" nonce="<%=getScriptNonce()%>" src="<%= getContextPath()%>/compliance/dropzone.js"></script>
3636
<link rel="stylesheet" href="https://rawgit.com/enyo/dropzone/master/dist/dropzone.css">
3737
<script type="text/javascript" nonce="<%=getScriptNonce()%>">
3838
module = _safe.module;

WNPRC_EHR/resources/queries/wnprc/MaxSpeciesPlusSubSpecies.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ FROM (
2020
SELECT rowid, 'Cynomolgus' AS arrow_common_name, protocol_id, max_three_year, date_modified, date_expiration
2121
FROM arrow_protocols
2222
WHERE arrow_common_name = 'Macaque'
23+
24+
UNION ALL
25+
26+
SELECT rowid, 'Pigtail' AS arrow_common_name, protocol_id, max_three_year, date_modified, date_expiration
27+
FROM arrow_protocols
28+
WHERE arrow_common_name = 'Macaque'
2329
)
2430

2531
UNION ALL

WNPRC_EHR/src/client/abstract/base/AnimalInfoPane.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ let constructArrayForTable = (animalInfo) => {
4141
if (!animalInfo["metaData"]["fields"][i].hidden) {
4242
let fieldMetadata = animalInfo["metaData"]["fields"][i];
4343
let key = getNameOfField(fieldMetadata);
44+
let isDate: boolean = fieldMetadata.type === "date";
4445

4546
let column = animalInfo["rows"][0][key];
4647
//cover the case where column could be an array
@@ -50,7 +51,7 @@ let constructArrayForTable = (animalInfo) => {
5051

5152
let item = {
5253
label: fieldMetadata["caption"],
53-
displayValue: column["displayValue"],
54+
displayValue: isDate ? column["formattedValue"] : column["displayValue"],
5455
url: column["url"],
5556
value: column["value"]
5657
};

WNPRC_EHR/src/client/weight/query/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const setupRestraintValues = (values: any[], taskId: string): Array<Restr
5555
Id: value.animalid.value,
5656
restraintType: value.restraint.value,
5757
taskid: taskId,
58-
objectid: value.restraint.objectid,
58+
objectid: value.restraint_objectid.value,
5959
date: value.date.value
6060
})
6161
}

WNPRC_EHR/src/org/labkey/wnprc_ehr/TriggerScriptHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2678,6 +2678,7 @@ public String verifyProtocolCounts(final String id, Integer project, final List<
26782678
{
26792679
final String RHESUS_SPECIES = "Rhesus";
26802680
final String CYNOMOLGUS_SPECIES = "Cynomolgus";
2681+
final String PIGTAIL_SPECIES = "Pigtail";
26812682
final String MACAQUE_SPECIES = "Macaque";
26822683
final String ALL_SPECIES = "All Species";
26832684
if (id == null)
@@ -2748,7 +2749,7 @@ public void exec(ResultSet rs) throws SQLException
27482749
AnimalRecord ar = EHRDemographicsService.get().getAnimal(container, id);
27492750

27502751
//we don't want to exit the animal count if ar.species() is cyno or rhesus and the protocol's species value is macaque.
2751-
if (!ALL_SPECIES.equals(species) && !(RHESUS_SPECIES.equals(ar.getSpecies()) || CYNOMOLGUS_SPECIES.equals(ar.getSpecies()) && MACAQUE_SPECIES.equals(species)))
2752+
if (!ALL_SPECIES.equals(species) && !(RHESUS_SPECIES.equals(ar.getSpecies()) || CYNOMOLGUS_SPECIES.equals(ar.getSpecies()) || PIGTAIL_SPECIES.equals(ar.getSpecies()) && MACAQUE_SPECIES.equals(species)))
27522753
{
27532754
//find species
27542755
if (ar.getSpecies() == null || !species.equals(ar.getSpecies()))

0 commit comments

Comments
 (0)