Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
fix js option parser
Browse files Browse the repository at this point in the history
  • Loading branch information
blopa committed Dec 17, 2017
1 parent c28fe2d commit c1e0451
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function _getRendererEnable()
protected function _prepareArrayRow(\Magento\Framework\DataObject $row)
{
$optionExtraAttr = array();
$optionExtraAttr['option_' . $this->_getRendererEnable()->calcOptionHash($row->getData('enable_reply'))] = 'selected="selected"';
$optionExtraAttr['option_' . $this->_getRendererEnable()->calcOptionHash($row->getData('enable_option'))] = 'selected="selected"';

$row->setData(
'option_extra_attrs', $optionExtraAttr
Expand Down
2 changes: 2 additions & 0 deletions Magento2/app/code/Werules/Chatbot/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,8 @@ private function getWelcomeMessage($message)
$text = $this->getConfigValue($this->_configPrefix . '/general/welcome_message');
if ($text != '')
{
// $contentObj = $this->getTextMessageArray($text);
// $outgoingMessage = $this->createOutgoingMessage($message, reset($contentObj)); // TODO reset -> gets first item of array
$enableMessageOptions = $this->getConfigValue($this->_configPrefix . '/general/enable_message_options');
if ($enableMessageOptions == $this->_define::ENABLED)
{
Expand Down

0 comments on commit c1e0451

Please sign in to comment.