Closed Philippe-M closed 4 years ago
Hello @Philippe-M,
We have applied limits on LUA scripts for security reasons. Only string
and math
libraries could be used :
/**
* LUA script prefix used to limit functions
*
* @var string
*/
const LUA_SCRIPT_PREFIX = 'local _ENV = { attributeValue = attributeValue, string = string, math = math}';
I just updated on version 1.6 & 1.7 the list of functions that can be now used:
/**
* LUA script prefix used to limit functions
*
* @var string
*/
const LUA_SCRIPT_PREFIX = 'local _ENV = { attributeValue = attributeValue, string = string, math = math, ipairs = ipairs, load = load, next = next, pairs = pairs, rawequal = rawequal, rawget = rawget, rawlen = rawlen, rawset = rawset, select = select, tonumber = tonumber, tostring = tostring, type = type}';
I'm trying to write the following lua script with Akaneo 3.2.17 CE with ACCB 1.6
But I have the error when I want to save the script
In log i've
I tested on my machine with a local lua script