Merge branch '710-disable-stripping-qr-prefix' into 'master'
Resolve "Disable stripping QR prefix" Closes #710 See merge request jankstudio/resq!825
This commit is contained in:
commit
9130d41a96
2 changed files with 6 additions and 6 deletions
|
|
@ -3355,9 +3355,9 @@ class APIController extends Controller implements LoggedController
|
|||
|
||||
|
||||
// remove QR prefix if it exists
|
||||
$prefix = substr($clean_serial, 0, 2);
|
||||
if ($prefix == 'QR')
|
||||
$clean_serial = substr($clean_serial, 2);
|
||||
// $prefix = substr($clean_serial, 0, 2);
|
||||
// if ($prefix == 'QR')
|
||||
// $clean_serial = substr($clean_serial, 2);
|
||||
|
||||
return $clean_serial;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,9 +102,9 @@ class CustomerWarrantyController extends APIController
|
|||
|
||||
|
||||
// remove QR prefix if it exists
|
||||
$prefix = substr($clean_serial, 0, 2);
|
||||
if ($prefix == 'QR')
|
||||
$clean_serial = substr($clean_serial, 2);
|
||||
//$prefix = substr($clean_serial, 0, 2);
|
||||
//if ($prefix == 'QR')
|
||||
// $clean_serial = substr($clean_serial, 2);
|
||||
|
||||
return $clean_serial;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue