• Resolved nerdworker

    (@newtonsongbird)


    I noticed that in the single event view it would display a single-day event as a multi-day event, even though there was only one date to display. It would display the one date with a blank space to the left where the start date would be.

    On investigating the code, I found that it was never hitting the function where multi-date was called, so it never knew it was a single date event.

    I was able to correct it by changing the following function in sc_event-list.php to this code:

    private function html_event_details( &$a ) {
    	$event = $this->db->get_event( $a['event_id'] );
    	$out = $this->html_filterbar($a);
    	$out .= '
    		<h2>Event Information:</h2>
    		<ul class="single-event-view">';
    	if( $event->start_date == $event->end_date ) {
    		$single_day_only = true;
    	}
    	$out .= $this->html_event( $event, $a, $single_day_only );
    	$out .= '</ul>';
    	return $out;
    }

    The next time the plugin is updated, my correction will be overwritten, so I’m hoping you will be able to correct it in the next official release.

    Thanks

    https://www.ads-software.com/plugins/event-list/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Single Event View Display Bug (with Fix)’ is closed to new replies.