Posted by Amitaibu on December 14, 2009 at 7:42am
3 followers
| Project: | Flag |
| Version: | 6.x-2.x-dev |
| Component: | Flag core |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
flag_update_export() is missing from flag_export_flags() resulting with flags that are exported without api_version => which makes them disabled => which messes up with Features => causing a WSOD.
| Attachment | Size |
|---|---|
| update-flag-export-1.patch | 741 bytes |
Comments
#1
Thanks Amitaibu, though running the update function on the flag probably isn't want we want. Instead I just set $flag->api_version = FLAG_API_VERSION; manually.
#2
I think that passing through the uodate function is a better - as it centralizes all the actions that should be taken before exporting a flag.
#3
The update function is intended to migrate 1.x flags to 2.x. When exporting, the flags should already be in the 2.x format. Even though the update function sets the API version too, it's only done so that Flag can discern that the flag has passed through the update.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.