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.

Repeating events

10 years 9 months ago
  • Juan's Avatar
    Topic Author
  • Juan
  • Offline
  • Fresh Boarder
  • Posts: 44
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Hi Albert,

Thanks for your help.

I updated "jomsocial" to the latest version and this is what I found.

If we create an event from scratch:
Whether the event begins and ends on the same day or begins and ends two days later, and chose the weekly repetition with an end date of December 22, all events are created correctly for both.

However, if we create an event from another, using replication, and added a weekly repeating, the operation fails.

What happens is this:

I have an event called "Tour de Malaca Instituto (General Program)" created on 14 July, is a past event, and I do the duplication since August 4. By creating this duplication I choose a weekly repeat until December 22. A message that has successfully created an event appears.
But the event does not appear in the list of all events. In the calendar you can see something there on August 4 but clicking the day, no event appears. Nor have created the rest of the weekly repeating events until December 22.
If we go to the database, in events table, I could find the new record created from the August 4, but only this one.
And if you edit the registry so that the "repeat" field changed it from "weekly" to empty and field "repeatend" also leave it empty now, the event appears in the list of "All Events" and also appears in the calendar by clicking on the August 4.

I hope this can help.

Regards

10 years 9 months ago
Licenses:

Hi Juan,

now the issue very clear to me. I confirmed this is a valid bug. please wait for the fixes.

Regards,
Albert

10 years 9 months ago
  • Juan's Avatar
    Topic Author
  • Juan
  • Offline
  • Fresh Boarder
  • Posts: 44
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Hi Albert,

Alright! I'll wait for your news.

Thanks and regards

10 years 8 months ago
Licenses:

Hi Juan,

here the fixes:
1. backup this file components/com_community/controllers/events.php
2. edit that file
3. replace code at line 1844 - 1845
from

$eventId = $jinput->get->get('eventid', 0, 'Int');
$isNew = ($eventId == 0) ? true : false;
to
$eventId = $isDuplicate ? 0 : $jinput->get->get('eventid', 0, 'Int');
$isNew = ($isDuplicate || $eventId == 0) ? true : false;
4. remove code at line 1960 - 1963
if ($isDuplicate) {
                $event->id = 0;
                $isNew = 1;
            }

Regards,
Albert

10 years 8 months ago
  • Juan's Avatar
    Topic Author
  • Juan
  • Offline
  • Fresh Boarder
  • Posts: 44
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Hi Albert,

I made the changes and it seems that now works correctly.

Many thanks for your help.

Regards

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