_messageTemplates[self::MSG_FIXED] = 'Selected items has been fixed'; $this->_messageTemplates[self::MSG_NO_DATA] = 'Not items selected'; return $this; } protected function _doMultiActionAjax() { $multiAction = Qs_Request::getPostValue('multiAction'); $selectedPrimary = Qs_Request::getPostValue('selectedPrimary'); if ('fix' === $multiAction && $selectedPrimary && is_array($selectedPrimary)) { $this->_getDataObj()->fix($selectedPrimary); $this->_getDataObj()->refreshStatuses(); $isError = false; $message = $this->_createMessage(self::MSG_FIXED); $this->_setBackMessage($message); } else { $isError = true; $message = $this->_createMessage(self::MSG_NO_DATA); } $response = array('isError' => $isError, 'message' => $message); $this->_displayJson($response); exit; } }