Code: Select all
$data['open'] = nl2br($this->config->get('config_open'));
$data['comment'] = $this->config->get('config_comment');
In admin/controller/setting/setting.php, at lines 531 to 541, we have:
Code: Select all
if (isset($this->request->post['config_open'])) {
$data['config_open'] = $this->request->post['config_open'];
} else {
$data['config_open'] = $this->config->get('config_open');
}
if (isset($this->request->post['config_comment'])) {
$data['config_comment'] = $this->request->post['config_comment'];
} else {
$data['config_comment'] = $this->config->get('config_comment');
}
Code: Select all
<textarea name="config_open" rows="5" placeholder="<?php echo $entry_open; ?>" id="input-open" class="form-control"><?php echo $config_open; ?></textarea>
Code: Select all
<textarea name="config_comment" rows="5" placeholder="<?php echo $entry_comment; ?>" id="input-comment" class="form-control"><?php echo $config_comment; ?></textarea>
In admin/controller/setting/store.php, at lines 537 to 551, we have:
Code: Select all
if (isset($this->request->post['open'])) {
$data['open'] = $this->request->post['open'];
} elseif (isset($store_info['config_open'])) {
$data['open'] = $store_info['open'];
} else {
$data['open'] = '';
}
if (isset($this->request->post['comment'])) {
$data['comment'] = $this->request->post['comment'];
} elseif (isset($store_info['config_comment'])) {
$data['comment'] = $store_info['comment'];
} else {
$data['comment'] = '';
}
Code: Select all
<textarea name="open" rows="5" placeholder="<?php echo $entry_open; ?>" id="input-open" class="form-control"><?php echo $open; ?></textarea>
Code: Select all
<textarea name="comment" rows="5" placeholder="<?php echo $entry_comment; ?>" id="input-comment" class="form-control"><?php echo $comment; ?></textarea>
To Fix
In admin/controller/setting/store.php, replace lines 537 to 551 with:
Code: Select all
if (isset($this->request->post['config_open'])) {
$data['config_open'] = $this->request->post['config_open'];
} elseif (isset($store_info['config_open'])) {
$data['config_open'] = $store_info['config_open'];
} else {
$data['config_open'] = '';
}
if (isset($this->request->post['config_comment'])) {
$data['config_comment'] = $this->request->post['config_comment'];
} elseif (isset($store_info['config_comment'])) {
$data['config_comment'] = $store_info['config_comment'];
} else {
$data['config_comment'] = '';
}
Code: Select all
<textarea name="config_open" rows="5" placeholder="<?php echo $entry_open; ?>" id="input-open" class="form-control"><?php echo $config_open; ?></textarea>
Code: Select all
<textarea name="config_comment" rows="5" placeholder="<?php echo $entry_comment; ?>" id="input-comment" class="form-control"><?php echo $config_comment; ?></textarea>