If Conditional fields aren't using the role based configuration, it still takes up a fairly large chunk of the export feature definition (a lot of num => 0's). My proposal is to clean it up at the source, on insert/update of the values.

Comments

finex’s picture

Hi, the function added with the patch has been named "conditiona_fields_clean_up_options", shouldn't be "conditional_fields_clean_up_options" instead?

hefox’s picture

Status: Needs review » Needs work

...yes, lol. typos!

hefox’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new1.69 KB
socialnicheguru’s picture

this seems to work

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new541 bytes
new1.7 KB

This works great to clean up my export. Thanks @hefox.

I changed one thing, the conditional_fields_dependency_update hook wasn't doing anything because it wasn't passing in options to work on.

Otherwise it worked perfectly. Sorry for the self RTBC, reset if you want a 3rd pair of eyes on it.

capysara’s picture

Worked for me!

Patch installed cleanly on 7.x-3.0-alpha2. I resaved the dependency and generated the feature and the extra => 0 were removed.

Thanks!

dqd’s picture

Apply/Test/Review ...

dqd’s picture

Works on latest 7.x dev.

  • dqd committed 0eed9e37 on 7.x-3.x authored by joelpittet
    Issue #2027307 by hefox, joelpittet, dqd, SocialNicheGuru: Cleanup...
dqd’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the report and all the hard work in here, very much appreciated.

Reviewed and tested and committed to latest 7.x dev. Hope it still helps someone out there! But please consider updating Drupal to latest core since EOL of Drupal 7 is coming soon.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.