mirror of
https://github.com/inventree/InvenTree.git
synced 2026-03-11 22:54:17 +00:00
* [UI] Bug fix for test result table
- Do not retain test choices when selecting a new test
* Remove quick-pass action if test has defined choices
(cherry picked from commit 94be4ebb26)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
committed by
GitHub
parent
704c77ff61
commit
e3fcb83dc9
@@ -1478,6 +1478,10 @@ export function useTestResultFields({
|
|||||||
setChoices([]);
|
setChoices([]);
|
||||||
setFieldType('string');
|
setFieldType('string');
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// No choices defined - this is a free-form text field
|
||||||
|
setChoices([]);
|
||||||
|
setFieldType('string');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -358,6 +358,7 @@ export default function StockItemTestResultTable({
|
|||||||
icon: <IconCircleCheck />,
|
icon: <IconCircleCheck />,
|
||||||
hidden:
|
hidden:
|
||||||
!record.templateId ||
|
!record.templateId ||
|
||||||
|
!!record.choices ||
|
||||||
record?.requires_attachment ||
|
record?.requires_attachment ||
|
||||||
record?.requires_value ||
|
record?.requires_value ||
|
||||||
record.result,
|
record.result,
|
||||||
|
|||||||
Reference in New Issue
Block a user