(Solved) HTML formatting will not apply on save

  • TechWild
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 6 months ago - 13 years 5 months ago #12168 by TechWild
When I edit configuration/Messages, the html formatting doesn’t save.

I searched through the forums and found this solution
joomdonation.com/index.php?option=com_ku...ew&catid=62&id=11841
But that didn’t work for me.

I have:
Joomla 1.5.24

Any ideas?
Last edit: 13 years 5 months ago by TechWild.

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #12229 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: HTML formatting will not apply on save
Hi

1. Open the file administrator/components/com_eventbooking/controller.php.

2. Find the code below :
Code:
function save_configuration() { $data = JRequest::get('post', JREQUEST_ALLOWHTML) ; unset($data['option']) ; unset($data['task']) ; if (isset($data['payment_methods']) && is_array($data['payment_methods'])) $data['payment_methods'] = implode(',', $data['payment_methods']); $model = & $this->getModel('configuration'); $ret = $model->store($data); if ($ret) { $msg = JText::_('EB_CONFIGURATION_DATA_SAVED'); } else { $msg = JText::_('EB_CONFIGURATION_DATA_ERROR'); } $this->setRedirect('index.php?option=com_eventbooking&task=show_configuration', $msg); }

Change it to :
Code:
function save_configuration() { $data = JRequest::get('post', JREQUEST_ALLOWRAW) ; unset($data['option']) ; unset($data['task']) ; if (isset($data['payment_methods']) && is_array($data['payment_methods'])) $data['payment_methods'] = implode(',', $data['payment_methods']); $model = & $this->getModel('configuration'); $ret = $model->store($data); if ($ret) { $msg = JText::_('EB_CONFIGURATION_DATA_SAVED'); } else { $msg = JText::_('EB_CONFIGURATION_DATA_ERROR'); } $this->setRedirect('index.php?option=com_eventbooking&task=show_configuration', $msg); }

After that, it should work as expected !

Tuan

Please Log in or Create an account to join the conversation.

  • TechWild
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 6 months ago #12240 by TechWild
Replied by TechWild on topic Re: HTML formatting will not apply on save
It works now!
Thank you

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc