change getInput

This commit is contained in:
Fayyazi
2019-07-18 18:53:45 +04:30
parent afc55ad16a
commit 217b6c09ce
+2 -2
View File
@@ -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) {