Change regexp to detect first -
This commit is contained in:
parent
d6dbc5f479
commit
2a3e8ebddd
@ -371,7 +371,7 @@ class GenerateBarcode
|
||||
}
|
||||
// Mark in ref
|
||||
else {
|
||||
preg_match('/.*-(.*)-.*/', $product['ref'], $matches);
|
||||
preg_match('/^.*-(.*)-.*/', $product['ref'], $matches);
|
||||
$ref = $matches[1];
|
||||
$this->_printIdMark($pdf, $ref, 1, $width, $height_label, 30);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user