public function toString($destroy = true) { if (!isset($this->attributes['checked'])) { foreach ($this->object_name as $obj_name) { if (empty($obj_name)) { continue; } zbx_add_post_js('visibility_status_changeds(false, ' . zbx_jsvalue($obj_name) . ', ' . zbx_jsvalue($this->replace_to) . ');'); } } return parent::toString($destroy); }