Closed (fixed)
Project:
Flag
Version:
7.x-3.x-dev
Component:
Flag core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2014 at 20:38 UTC
Updated:
7 Mar 2014 at 09:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
joachim commentedI'm not really sure what we can do here.
How does it work when you export a node type & its permissions? Does Features do any sort of special handling to get around this problem in that case?
Comment #2
mariacha1 commentedI'm not sure exactly, but I did see similar issues for other modules, so it might be a problem for a lot of entities.
Here's how it was solved for entityqueue:
https://drupal.org/node/1975512
And here's where the change was enabled to begin with:
https://drupal.org/node/1975512
Comment #3
jhedstromThis issue tends to only happen when an install profile is being run via drush since static caches can persist for much longer than when an install occurs via the browser/batch system. Clearing the static cache from within hook_permission resolves this warning.
Comment #4
mariacha1 commentedThis works great for me and gets rid of warnings during install. Setting as RTBC.
Comment #5
joachim commentedCommitted. Thanks!
git commit -m "Issue #2193947 by jhedstrom: Fixed errors and glitches when permissions for a flag are in the same feature as the flag export." --author="jhedstrom "