swshop accepts uppercase names for items #11
This commit is contained in:
@@ -89,7 +89,7 @@ local function transfer(node)
|
|||||||
|
|
||||||
local target = context.storage.nodes[node.target]
|
local target = context.storage.nodes[node.target]
|
||||||
if not target or not target.adapter or not target.adapter.online then
|
if not target or not target.adapter or not target.adapter.online then
|
||||||
error(string.format('TRANSFER: target %s is not online', node.target))
|
error(string.format('TRANSFER: target %s is not online', node.name))
|
||||||
end
|
end
|
||||||
|
|
||||||
if target.mtype == 'storage' then
|
if target.mtype == 'storage' then
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ local shopTab = UI.Tab {
|
|||||||
[1] = UI.TextEntry {
|
[1] = UI.TextEntry {
|
||||||
formLabel = 'Name', formKey = 'name',
|
formLabel = 'Name', formKey = 'name',
|
||||||
help = 'Unique name used when paying for an item',
|
help = 'Unique name used when paying for an item',
|
||||||
|
transform = 'lowercase',
|
||||||
required = true,
|
required = true,
|
||||||
width = 12,
|
width = 12,
|
||||||
limit = 64,
|
limit = 64,
|
||||||
|
|||||||
Reference in New Issue
Block a user