2

Closed

Cannot add events if categories do not exist

description

Using DNN 6.1.4 and Events 6.0.1. I cannot add an event to a calendar if I do not create at least one category. Page logs an error "System.InvalidCastException: Conversion from string "" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format"
 
Further, there does not seem to be a method to enable selecting a category when editing an event unless "Enable Category Select" is enabled, which is definitely a change from 6.0.0. I had my test machine setup with various categories which were displayed on the list and form, but without the drop list above the list / calendar to filter by category. Hopefully this is a defect and not a design change. There should be a separate "Use Categories" option.
Closed Jun 21, 2012 at 11:02 AM by RogerSelwyn

comments

wagra021 wrote Jun 21, 2012 at 1:46 AM

We had exactly the same problem & could only resolve by making sure the enable category select setting was enabled on the module.

RogerSelwyn wrote Jun 21, 2012 at 8:24 AM

One of the changes we made in Events 6 was to enable multiple category selection. In theory categories should not be visible for inclusion on an event, unless category slection is available on the module. If it did in version 6, then that was not by design.

If you are saying you want to be able to add a variable category at edit time, but not have it selectable at view time, could you explain the use case?

I will inestigate again the described issue with having to have at least one category. It should not be required.

RogerSelwyn wrote Jun 21, 2012 at 9:54 AM

There is a couple of bugs in the slection code here, I'm re-working it.

wrote Jun 21, 2012 at 11:01 AM

Resolved with changeset 67723.

RogerSelwyn wrote Jun 21, 2012 at 11:01 AM

** Closed by RogerSelwyn 21/06/2012 04:01

RogerSelwyn wrote Jun 21, 2012 at 11:01 AM