Fixes various lua memory issues

This commit is contained in:
Matteo Biscosi 2024-02-22 11:21:38 +00:00
parent eb52f62b1e
commit 5edfdeedcd
53 changed files with 336 additions and 551 deletions

View file

@ -847,7 +847,7 @@ const render_template = () => {
if(field_max == undefined)
field_max = metadata.default_value[field].field_max
if(title == undefined)
title = metadata.default_value[field].title
title = metadata.default_value[field].i18n_title
let $select = null;
@ -857,7 +857,7 @@ const render_template = () => {
$select = $(`<span class='input-group-text'>&${field_operator}</span>`).data('value', field_operator);
}
const $title = `<span class='mt-auto mb-auto ms-2 me-2'>${title ? title : ""}</span>`;
const $title = `<span class='mt-auto mb-auto ms-2 me-2'>${i18n(title) ? i18n(title) : ""}</span>`;
$field.append($select);
$field.append(`<input