Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Feature Flag won’t stay enabled
Status | Resolved |
Add-on / Version | Feature Flags 1.0.1b |
Severity | |
EE Version | 7.2.6 PHP 7.4.30 |
Dave de Bruin
Feb 08, 2023Hi Brian,
When i create a FF en enable it, it gets saved properly but the toggle button goes back tot disabled status. And if i change anything als within the flag the flag is saved as disabled. So the content won’t show.
Also i think the start_date/ end_date doesn’t work. If i set the end date in the past the content will still show.
Best Dave
BoldMinded (Brian)
Feb 08, 2023
Have you defined any feature flag related values in your config.php file?
Dave de Bruin
Feb 08, 2023
No, should I have??
BoldMinded (Brian)
Feb 08, 2023
Comment has been marked private.
Dave de Bruin
Feb 08, 2023
Thanks that helped whit the enable/disable bit.
I can still see my content if I set the end-dat of the flag in past. I was just testing to see of the end-date would work when time came to end the flag.
Wanted to use it for ending a promotional piece off content at some given time.
BoldMinded (Brian)
Feb 08, 2023
I’ll have to look into this tonight and get back to you.
BoldMinded (Brian)
Feb 08, 2023
What dates are you testing with? Can you share your template code and a screenshot of your settings so I can accurately replicate it later?
Dave de Bruin
Feb 09, 2023
Im testing like start 2/1/2023 2:17 PM and ending 2/3/2023 8:50 PM. I added the images off the settings in the tickets-images above this page
BoldMinded (Brian)
Feb 09, 2023
This is weird b/c I specifically tested this locally… setting the start and end date prior to today’s date, and the flag did not show it’s content.
Have you tested this without the entries tag? Just put some basic text in there?
BoldMinded (Brian)
Feb 09, 2023
Oh, can you uncheck the roles? Just use the date’s. I wonder if the role rules are superseding the date rules.
BoldMinded (Brian)
Feb 09, 2023
Comment has been marked private.
Dave de Bruin
Feb 09, 2023
Thanks Brian,
That solves the date problem..
Great job.
BoldMinded (Brian)
Feb 09, 2023
Great to hear! Let me know if you run into anything else.