Merge branch '4916-macros-no-funciona-versiones-nuevas' into 'develop'
Changed mode of decode_json See merge request artica/pandorafms!2924
This commit is contained in:
commit
2b9b53f84a
|
@ -179,7 +179,7 @@ sub data_consumer ($$) {
|
|||
eval {
|
||||
if ($module->{'macros'} ne '') {
|
||||
logger ($pa_config, "Decoding json macros from # $module_id plugin command '$command'", 10);
|
||||
my $macros = decode_json(encode_utf8($module->{'macros'}));
|
||||
my $macros = JSON->new->allow_nonref->decode(encode_utf8($module->{'macros'}));
|
||||
my %macros = %{$macros};
|
||||
if(ref($macros) eq "HASH") {
|
||||
foreach my $macro_id (keys(%macros))
|
||||
|
|
Loading…
Reference in New Issue