ISSUE SUMMARY: When editing an existing event in the jomsocial backend all description text is replaced with one long continuous stream of text
STEPS TO REPLICATE:
1 Create an event in the front end. Enter html formatted description.
2 Go to jomsocial in backend.
3 Click on Events/ click on a single event to bring up the edit pop up window
4 Change any piece of data, i.e.. start time.
5 Save
RESULT Front end view of event shows garbage text in description area - overflows into adjacent area
EXPECTED RESULT - The description remains as was originally entered
BROWSER all
Hi Megan,
This is valid bug, thank you for reporting.
cheers!
Hi Meagan,
Please follow this fix, open this file administrator/components/com_community/controllers/events.php, find this code inside function saveEvent() :
$jinput = $mainframe->input;$config = CFactory::getConfig();
$jinput= $mainframe->input;$description = $jinput->post->get('description', '');
$postData['description'] = $description;$inputFilter = CFactory::getInputFilter($config->get('allowhtml'));
$description = $jinput->post->get('description', '', 'RAW');
$postData['description'] = $inputFilter->clean($description);
Hello Dimas,
I was looking at the wrong file. I was looking in the regular components, not the administrator. However, I have applied the code changes and the problem is not resolved. Formatting in the event description is not being maintained.
Hi,
please check it:
Hello Albertus,
In the current version of jomsocial events can still be edited in the backend. So can you tell me do we still need to patch the files at administrator/components/com_community/controllers/events.php and components/com_community/controllers/events.php ?
Thank You.