Merge pull request #9305 from rohitwaghchaure/fixed_barcode_not_working_with_special_characters_new
fix: barcode issue
This commit is contained in:
commit
53ac59ddc2
1 changed files with 5 additions and 1 deletions
|
|
@ -27,7 +27,11 @@ frappe.ui.form.ControlBarcode = frappe.ui.form.ControlData.extend({
|
|||
set_formatted_input(value) {
|
||||
// Set values to display
|
||||
let svg = value;
|
||||
const barcode_value = $(svg).attr('data-barcode-value');
|
||||
let barcode_value = '';
|
||||
|
||||
if (value && value.startsWith('<svg')) {
|
||||
barcode_value = $(svg).attr('data-barcode-value');
|
||||
}
|
||||
|
||||
if (!barcode_value && this.doc) {
|
||||
svg = this.get_barcode_html(value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue