Skip to content

Commit

Permalink
[LIMS-360] Fix: Show sample groups with no samples (#497)
Browse files Browse the repository at this point in the history
* Merge 2023-R1.8 into master (#486)

* LIMS-213: Update regex to enable creating Block-4 containers

* LIMS-405: Update list of container types to include block-4 as a puck

* LIMS-216: Fix message for industrial archived visits

* Processing results aren't deleted from disk

* Data from SW visits are archived, not deleted

* Make clearer the status of raw data

* LIMS-449: Left-align column headings in data processing tables

* LIMS-453: Email container owners as well as dewar lab contacts when a dewar returns to the dewar store

* LIMS-475: Assign SCHEDULINGRESTRICTIONS to

---------

Co-authored-by: Mark Williams <[email protected]>
Co-authored-by: Richard Gildea <[email protected]>
Co-authored-by: NKatti2011 <[email protected]>

* LIMS-558: Set country as the lab contact country (#495)

* Add Joins and adjust JS accordingly

---------

Co-authored-by: Matthew Pritchard <[email protected]>
Co-authored-by: Mark Williams <[email protected]>
Co-authored-by: Richard Gildea <[email protected]>
Co-authored-by: NKatti2011 <[email protected]>
Co-authored-by: John Holt <[email protected]>
Co-authored-by: Shah, Hussain (-,RAL,LSCI) <[email protected]>
  • Loading branch information
7 people authored Mar 13, 2023
1 parent 3da9143 commit c5c578c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/src/Page/Sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -2357,8 +2357,8 @@ function _sample_groups() {
$from_table = 'FROM blsamplegroup bsg';
$joins = '
LEFT JOIN blsamplegroup_has_blsample bshg ON bshg.blsamplegroupid = bsg.blsamplegroupid
INNER JOIN blsample bs on bshg.blsampleid = bs.blsampleid
INNER JOIN container c on bs.containerid = c.containerid
LEFT JOIN blsample bs on bshg.blsampleid = bs.blsampleid
LEFT JOIN container c on bs.containerid = c.containerid
';
$group_by .= 'GROUP BY bsg.blsamplegroupid';

Expand Down
4 changes: 2 additions & 2 deletions client/src/js/modules/samples/components/sample-groups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ export default {
const uniqueContainer = {}
this.groups = result.map(group => {
const containerList = group['CONTAINERIDS'].split(',')
const containerList = group['CONTAINERIDS']? group['CONTAINERIDS'].split(',') : []
containerList.forEach(container => {
uniqueContainer[container] = container
})
return {
...group,
CONTAINERIDS: containerList,
CONTAINERS: group['CONTAINERS'].replace(/,/g, ', ')
CONTAINERS: group['CONTAINERS']? group['CONTAINERS'].replace(/,/g, ', '): group['CONTAINERS']
}
})
Expand Down

0 comments on commit c5c578c

Please sign in to comment.