M3 Security Fixes for pass 28
This commit is contained in:
@@ -34,7 +34,6 @@ class ShipTo extends Model
|
||||
return parent::save($options);
|
||||
} else {
|
||||
return false;
|
||||
// return redirect()->back()
|
||||
// ->withErrors(['unique' => 'The combination of AUSHSHZP and AUSHWHS must be unique'])
|
||||
// ->withInput();
|
||||
}
|
||||
@@ -54,7 +53,6 @@ class ShipTo extends Model
|
||||
}
|
||||
|
||||
if ($existingRecord->count() > 0) {
|
||||
// throw new \Exception('Composite unique constraint violated for AUSHSHZP and AUSHWHS');
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user