Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Campaign form - Alt BG field fix#1161

Merged
aaronschachter merged 4 commits intoDoSomethingArchive:devfrom
aaronschachter:save_vars_fix
Mar 12, 2014
Merged

Campaign form - Alt BG field fix#1161
aaronschachter merged 4 commits intoDoSomethingArchive:devfrom
aaronschachter:save_vars_fix

Conversation

@aaronschachter
Copy link
Contributor

Fixes #1134

Error was occurring because we're using a file_managed form element to store a File fid, and wasn't updating the corresponding records in the file_usage table. This PR fixes that, implementing the dosomething_campaign_save_alt_bg_fid function to track the usage of files we're setting for each alt_bg_fid variable.

Also gets rid of the dosomething_campaign_get_custom_varnames function, because it was just not readable at all by looping through it on the save (and not worth it for just 2 variables)

@angaither
Copy link
Contributor

👍

aaronschachter added a commit that referenced this pull request Mar 12, 2014
@aaronschachter aaronschachter merged commit fd79a72 into DoSomethingArchive:dev Mar 12, 2014
@aaronschachter aaronschachter deleted the save_vars_fix branch March 12, 2014 14:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

campaign (form) - Alt background pattern field bug

2 participants