Add actual field name to question

This commit is contained in:
Fierelier 2024-08-30 16:03:40 +02:00
parent eda65f51ed
commit 6f9c71fc89

View File

@ -92,7 +92,7 @@ local function fieldSetType(entry,field)
end end
local function fieldRemove(entry,field) local function fieldRemove(entry,field)
if not yn("Do you want to remove the field '" .. "'?") then return end if not yn("Do you want to remove the field '" ..field.attrs.name.. "'?") then return end
makeEntryBackup(entry.attrs.id) makeEntryBackup(entry.attrs.id)
env.run({"field_remove",entry.attrs.id,field.attrs.name}) env.run({"field_remove",entry.attrs.id,field.attrs.name})
env.run({"save"}) env.run({"save"})