i7MEDIA / mojoportal

mojoPortal is an extensible, cross database, mobile friendly, web content management system (CMS) and web application framework written in C# ASP.NET.
https://www.mojoportal.com
Other
197 stars 100 forks source link

Sometimes SuperFlexi prevents editing if solution changed #196

Open joseph-fowler opened 1 year ago

joseph-fowler commented 1 year ago

On mysql, when adding Cookie Consent feature on page, Super Flexi displays the error "The selected solution does not contain a matching view" and clicking on "Add Item" results in a permissions error.

JosephMDavis commented 1 year ago

this appears to have happened because:

  1. The module used for the cookie consent solution was originally used with a banner slider solution
  2. The solution was changed to cookie consent
  3. SuperFlexi recreates the fields for a module based on the chosen solution's field definition file (.sffields) when the Edit(add) page is loaded.
  4. The cookie consent solution only allows one option, thus giving an access denied.
  5. The view expects the fields to match and when they don't it errors (gracefully) with the message you received.

There are a few things we can do to fix this but they're all going to take some time. I would rather leave it as is for now. It's kind of niche problem. We'll most likely prevent this from happening in 2.9.1