mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 20:01:07 +03:30
change getInput
This commit is contained in:
@@ -375,9 +375,9 @@ class TestTypeController extends Controller
|
||||
$testTypeId = TestResult::find($request->test_result_id);
|
||||
}
|
||||
if (isset($testTypeId) && $testTypeId) {
|
||||
$testType = TestType::select('id', 'name', 'unique_code')->find($testTypeId->test_type_id);
|
||||
$testType = TestType::select('id', 'name', 'unique_code', 'device_label')->find($testTypeId->test_type_id);
|
||||
} else {
|
||||
$testType = TestType::where('name', $request->name)->orWhere('unique_code', $request->unique_code)->select('id', 'name', 'unique_code')->first();
|
||||
$testType = TestType::where('name', $request->name)->orWhere('unique_code', $request->unique_code)->select('id', 'name', 'unique_code', 'device_label')->first();
|
||||
}
|
||||
if (isset($testType) && $testType) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user