Skip to content

Commit

Permalink
Adding additional or statement to resolve the GEAR Manager issue #546
Browse files Browse the repository at this point in the history
…of not being able to update existing IT standard records that do not have a softwareRelease name attributed to them
  • Loading branch information
hatfieldjm4 committed Dec 5, 2024
1 parent 9f015f0 commit 9243b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/it-standards.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ exports.create = (req, res) => {
softwareReleaseName,
endOfLifeDate,
approvedVersions) VALUES (
${(!data.tcSoftwareReleaseName || data.tcSoftwareReleaseName === 'NULL') ?
${(!data.tcSoftwareReleaseName || data.tcSoftwareReleaseName === 'NULL' || data.tcSoftwareReleaseName === '') ?
"'" + data.itStandName + "'" : null},
${data.itStandDesc},
${data.itStandAprvExp},
Expand Down

0 comments on commit 9243b19

Please sign in to comment.