Skip to content

Commit

Permalink
LIMS-1029: Fix bug creating lab contact with login (#676)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Williams <[email protected]>
  • Loading branch information
ndg63276 and Mark Williams authored Oct 4, 2023
1 parent 506cc1e commit bd36cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/Page/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function _add_contact() {
foreach ($lfields as $i => $f) {
if ($this->has_arg($f)) {
$c = $f == 'LABNAME' ? 'NAME' : $f;
$this->db->pq('UPDATE laboratory SET '.$c.'=:1 WHERE laboratoryid=:2', array($this->arg($f), $lab['LABORATORYID']));
$this->db->pq('UPDATE laboratory SET '.$c.'=:1 WHERE laboratoryid=:2', array($this->arg($f), $lab[0]['LABORATORYID']));
}
}
}
Expand Down

0 comments on commit bd36cd4

Please sign in to comment.