• Resolved Toni Ginard

    (@toniginard)


    Hi,

    We have come across an issue with grouped calendars. Some not much skillful users have created grouped calendars with cross reference, which causes an infinite loop.

    The issue is when selecting calendars to create a grouped calendar, it would not allow to select another grouped calendar o, at least, check if there is any cross reference that may cause that loop.

    We have fixed that excluding the grouped calendar in the list. To get that, we have added this lines to file includes/functions/shared.php after line 206:

    
    foreach ( $calendars as $key => $value ) {
    	$meta_calendarGrouped = get_post_meta( $key,'_grouped_calendars_ids' );
    	if( $meta_calendarGrouped[0] != '' ){
    		unset( $calendars[$key] );
    	}
    }
    

    It’s not the best way, but works for us.

    Best wishes,

    Toni Ginard

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Loop in grouped calendars’ is closed to new replies.