Added order by id logic in panel box validation
Some checks failed
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 29s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 26s
Laravel Pint / pint (pull_request) Successful in 1m53s
Laravel Larastan / larastan (pull_request) Failing after 6m42s
Some checks failed
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 29s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 26s
Laravel Pint / pint (pull_request) Successful in 1m53s
Laravel Larastan / larastan (pull_request) Failing after 6m42s
This commit is contained in:
@@ -98,6 +98,7 @@ class CreatePanelBoxValidation extends CreateRecord {
|
||||
$this->existingRecords = ProductCharacteristicsMaster::where('plant_id', $plantId)
|
||||
->where('category', $categoryName)
|
||||
->where('line_id', $lineId)
|
||||
->orderBy('id', 'asc')
|
||||
->get();
|
||||
|
||||
return $this->existingRecords->isNotEmpty();
|
||||
|
||||
Reference in New Issue
Block a user