CMS MADE SIMPLE FORGE

CGCalendar

 

[#8283] Warning: Parameter startdate_Month is not known by module CGCalendar

avatar
Created By: Piotras Cimmperman (vilkis)
Date Submitted: Mon Aug 20 10:37:00 -0400 2012

Assigned To: Robert Campbell (calguy1000)
Version: 1.10.0.1
CMSMS Version: 1.11
Severity: Minor
Resolution: None
State: Open
Summary:
Warning: Parameter startdate_Month is not known by module CGCalendar
Detailed Description:
Many warning appear if event on Front End is two times submitted with missing or
wrong info .
How to reproduce:
On Front End click on link "Add New Event", then do not enter Title of event and
two times submit form.


History

Comments
avatar
Date: 2012-08-22 12:26
Posted By: John Beatrice (mww)

Here is a template change that can resolve the issue.  The issue being that the
frontend submit event form believes the event has a different end set when it
does not actually have an end date set.

In your Edit Event Form template, look for this line:

<input type="checkbox" name="{$actionid}cal_enddate_valid" value="1" {if
$event.alt_end_date == 1}checked="checked"{/if}
onclick="toggleDisplay('enddate');">{$mod->Lang('use_to_date')}<br/>


And modify like this:
<input type="checkbox" name="{$actionid}cal_enddate_valid"
id="{$actionid}cal_enddate_valid" value="1" {if !empty($event.event_date_end) &&
$event.event_date_end != '' && !$event.all_day_event}checked="checked"{/if}
onclick="toggleDisplay('enddate');">{$mod->Lang('use_to_date')}<br/>


This works for me.