Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Editing event in backend destroys description text

2 years 5 months ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

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

Attachments:
2 years 5 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Megan,

This is valid bug, thank you for reporting.

cheers!

2 years 4 months ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

ALso, html formatting of event description text in the front end does not seem to 'stick'. This is similar to a problem we had with group discussion text formatting. The editor was/is broken.

2 years 4 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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;
replace to :
$config = CFactory::getConfig();
 $jinput= $mainframe->input;

and find this code :
$description = $jinput->post->get('description', '');
$postData['description'] = $description;
replace to :
$inputFilter = CFactory::getInputFilter($config->get('allowhtml'));
 $description = $jinput->post->get('description', '', 'RAW');
 $postData['description'] = $inputFilter->clean($description);

I hope it will fix it

2 years 4 months ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

Dimas,

There is no public function (saveEvent) in the events.php file.

2 years 4 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Meagan,

Have you looked the correct file?



Thank you!

Attachments:
2 years 4 months ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

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.

2 years 4 months ago
Licenses:

Hi,

please check it:



I put this fix:
www.jomsocial.com/forum/installation/338...and-maybe-new-server

Regards

Attachments:
2 years 3 months ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

Hello Albertus,

Will this fix be incorporated into the next release, or will we have to patch that file again?

Thank You.

2 years 3 months ago
Licenses:

Hi,

at jomsocial newest version. admin cannot edit the events from backend anymore, admin must do it at frontend.

Regards

2 years 2 weeks ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

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.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW