-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module settings not saving #231
Comments
Take a look at closed issue #229. The last note by Ernst indicates he had some suspicion to I believe what you're experiencing might be an issue this. " I have to some additional research, because I have the idea that the default filtering on categories and/or locations in the module settings are not saved on restarts. If you do not use this setting (most users do not use this particular filtering), you do not have to worry." |
@EPTamminga I think your suspicions were correct. |
I know, I also know why, but I have not solved it yet. I have to define a new method to save the list of id's in settings. |
does anyone know if there is a way to bypass the settings and make a change in the database for now that would allow for the filter by categories? We have this live on a client site, and long story short was forced to update to 9.8 which we never do for this reason and we are in a jam to find a temp fix if it is possible. |
Does anyone know if there is a way to bypass the settings and make a change in the database for now that would allow for the filter by categories? We have this live on a client site, and long story short was forced to update to 9.8 which we never do for this reason and we are in a jam to find a temp fix if it is possible. |
I don't think so. Looking at the DB and the value stored it looks like it's just storying a string value of "System.Collections.ArrayList". My thought is it should be a value or array of selected values. Maybe Ernst has some ideas. |
AFAIK, There is no hotfix. |
I use the "Filter Events by Category" setting on several government websites so this is important to me also before I upgrade. |
I wanted to check back in and see if anyone had made any headway on this? We have some sites actively using this with original functionality they cannot use and I am having to look at alternatives which I really do not want to move to if I can avoid it. |
@brownjerod I am working on a solution. Should be ready for test in a week or so |
@djamell @brownjerod @james7342 @techbubble I think I have created a fix for the setting Category/Location filters not being saved. If you are able to test it before I create a new release, I would be more than happy. The test can be done by replacing the Events DLL in the bin\ folder with the ones in the attached zip. An instruction .txt file is also in the .zip file. DNN_Events_07.00.08_TEST_DLL.s_UNZIPME.zip As always, testing should be done in a test environment and not in production. |
Yes, I will try this. It might take a day or so to get back to you. Thanks @EPTamminga ! |
@EPTamminga, I tested this build on my test site and it appears to work as expected. I did a few application restarts and also confirmed via DB that comma separated values where written versus the prior "System.Collections.ArrayList". My testing though only validated categories as I don't have any locations defined. If the same code logic is applied there I think that locations would also test with success. |
I'm just finishing up testing and while the settings do save correctly for categories and location, I ran into another problem. If I filter by categories when I click to add a new event I get the following error: ModuleId:539 Source: |
Follow up to my previous: I had "Enable Category Select" set to "Do Not Display". If I set "Enable Category Select" to either of the other two options I do not get the error and the Edit Details functions appear to work. |
@djamell, good info. I was trying to duplicate the issue and was unable to. With this additional info I can duplicate it also now. ModuleId:453 |
@james7342 @djamell |
I am working on it, I thought I solved it, but a related problem now appears on another point. |
Please let me know if I can do any testing. And thanks for the update |
@djamell @brownjerod @james7342 @techbubble New test round, new fixes. A new problem arose when I started to edit an event that was originally created with a category that was no longer allowed in the settings of the module. In short: be sure the set the right category and location limitations in the module settings before you start entering new events. If you are able to test it before I create a new release, I would be more than happy. The test can be done by replacing the Events DLL in the bin\ folder with the ones in the attached zip. An instruction .txt file is also in the .zip file. DNN_Events_07.00.08_B_TEST_DLL.s_UNZIPME.zip As always, testing should be done in a test environment and not in production. |
With the latest DLLs, Restrict Categories now allows me to add an event but it does not display on the Calendar. If I uncheck Restrict Categories the event displays. |
@djamell If, after editing, you page back/forward a month, the event does display or not? |
Yes! Also, I discovered by accident that if you set "Filter Events by Category" to "All" and check Restrict Categories the module throws an error when either adding or editing. Even though those settings should not work in that combination I wouldn't think you would want it to error. |
@djamell Tnx. Most errors are a result of a casting/type difference between VB.net and C# and are a result of the migration of the source from VB.net to C# some versions ago. |
Using Events Release 7.0.7 with DNN 9.6.2. I cannot find where either Locations or Categories are saved on the database. Thus, if you attempt to restrict events to a specific category or location, you cannot add a new event. The entry of both category and location on the Module Settings table is just Array List, with no values for the array list. |
@HZass This is an error in DNN7.x. I solved in V7.0.8, but there are some small issues left. |
Any update on when this issue will be incorporated into a release? Is there a release date? |
@HZass No release date set (free time is sparse). I have to fix at least 1 issue (refresh calendar after adding a new event). That might take 5 minutes, or multiple hours or more. |
Is there any update for this issue? I support a website in which the module is displaying events from the wrong category due to this issue. |
I too am interested in the fully fixed version. |
Any more progress on this issue? |
I'm sure that it would be easier to ensure the progress of an open-source issue being worked on by sponsoring an interested developer. We're all always so busy with client work, and usually can only fix things here that are either sponsored, or inspired to resolve during our free time on evenings and weekends. It's also always faster to fix something yourself via a Pull Request. If you don't have the skill set, then the sponsorship route is obviously a better choice for anyone with a time constraint. :) |
The following code should replace LoadLocation() in the EditSettings.ascx.cs file to completely close Issue 231:
|
I just ran headlong into the problem of not saving "Filter Events by Category" selections. Is there any chance this could be fixed soon? |
Bump, Please |
A bump comment won't do anything here. |
Hi Daniel, I have worked with Ernst Peter on issues related to the Events Module project for many years. I just noticed that Hans had submitted code back in October and I was excited to see if there could be a new version soon. |
I will review and aim to create a new version. |
Not finished yet |
I am working on at least one issue before release: a refresh after the settings update when the filtered category or location has changed in the settings. |
Understood. Thanks for all you are doing. |
We have detected this issue has not had any activity during the last 180 days. |
We have had this issue on a few sites that we are using the module, but haven't seen any others mention it
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: