mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 00:11:27 -08:00
Remove dead macro code (#4164)
The barcode_types macro existed twice in the code, the second occurrence overriding the first one. This commit removes the first occurrence which is essentially dead code.
This commit is contained in:
parent
c676e9d794
commit
059f8f5bc9
|
@ -398,31 +398,8 @@ Form::macro('time_display_format', function ($name = "time_display_format", $sel
|
|||
|
||||
/**
|
||||
* Barcode macro
|
||||
* Generates the dropdown menu of available barcodes
|
||||
* Generates the dropdown menu of available 1D barcodes
|
||||
*/
|
||||
Form::macro('barcode_types', function ($name = "barcode_type", $selected = null, $class = null) {
|
||||
|
||||
$barcode_types = array(
|
||||
'QRCODE'=>"QR Code",
|
||||
'PDF417'=>'PDF417',
|
||||
'DATAMATRIX'=>'DATAMATRIX',
|
||||
'C128'=>'Code 128'
|
||||
);
|
||||
|
||||
$select = '<select name="'.$name.'" class="'.$class.'">';
|
||||
|
||||
foreach ($barcode_types as $code => $codename) {
|
||||
$select .= '<option value="'.$code.'"'.($selected == $code ? ' selected="selected"' : '').'>'.$codename.'</option> ';
|
||||
}
|
||||
|
||||
$select .= '</select>';
|
||||
|
||||
return $select;
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
Form::macro('alt_barcode_types', function ($name = "alt_barcode", $selected = null, $class = null) {
|
||||
|
||||
$barcode_types = array(
|
||||
|
@ -445,6 +422,10 @@ Form::macro('alt_barcode_types', function ($name = "alt_barcode", $selected = nu
|
|||
});
|
||||
|
||||
|
||||
/**
|
||||
* Barcode macro
|
||||
* Generates the dropdown menu of available 2D barcodes
|
||||
*/
|
||||
Form::macro('barcode_types', function ($name = "barcode_type", $selected = null, $class = null) {
|
||||
|
||||
$barcode_types = array(
|
||||
|
|
Loading…
Reference in a new issue