Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I noticed the following bug: I exported an entityform with features and when reverting the feature the default submission view for that entityform changes back to default no matter what we have in code already and in the back-office the entityform will be shown as overriden if I change the submission view to something else than 'Use default'.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2563299-2.patch | 732 bytes | lhangea |
Comments
Comment #2
lhangea CreditAttribution: lhangea commentedI looked in code a little bit and in the .module file I noticed that in the 'create' method of EntityformTypeController if the 'is_new' flag is set the 'submissions_view' and ''user_submissions_view' are set back to 'default' loosing what we have in feature. I provide a quick patch which fixes the issue but please someone which knows the module better take a look also and see if the problem doesn't reside in another place in fact.
Comment #3
lhangea CreditAttribution: lhangea commentedComment #5
tedbow@lhangea I think the version is wrong for this issue so the patch doesn't apply.
are you working against 7.x-1.x or 7.x-2.x?
Thanks
Comment #6
lhangea CreditAttribution: lhangea commentedYes, the version was wrong.
Comment #9
lhangea CreditAttribution: lhangea commentedInteresting because on my local environment the tests pass just fine. Are the tests run against 7.x-2.x or 7.x-2.0-rc1 ?
Comment #10
tedbow@lhangea the tests will be run against the version that is set in this issue.
I am switching it now from 7.x-2.0-rc1 to 7.x-2.x-dev
I will retest.
Comment #13
sokru CreditAttribution: sokru at Druid commentedThis works in latest dev, but not in stable release. I assume https://www.drupal.org/node/2408765 resolved this.