diff --git a/core/class/z2m.class.php b/core/class/z2m.class.php index fcd3494..f12353a 100644 --- a/core/class/z2m.class.php +++ b/core/class/z2m.class.php @@ -875,7 +875,7 @@ public function createCmd($_infos, $_type = null,$_father_property = null) { $cmd->save(); } catch (\Throwable $th) { try { - $cmd->setName('Action ' . $logical_id . ' '. $_infos[$k]); + $cmd->setName('Action ' . $logical . ' '. $_infos[$k]); $cmd->save(); } catch (\Throwable $th) { log::add('z2m', 'debug', '[createCmd] Can not create cmd ' . json_encode(utils::o2a($cmd)) . ' => ' . $th->getMessage());