Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System Config fields dependency issue at store view level. #767

Closed
tzyganu opened this issue Nov 24, 2014 · 5 comments
Closed

System Config fields dependency issue at store view level. #767

tzyganu opened this issue Nov 24, 2014 · 5 comments

Comments

@tzyganu
Copy link
Contributor

tzyganu commented Nov 24, 2014

Scenario.
I have 2 fields in System->Configuration.
The first field is a yes/no (let's call it Enabled).
The second field depends on enabled. Type not important:

           <field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Enabled</label>
                <source_model>Magento\Backend\Model\Config\Source\Yesno</source_model>
            </field>
            <field id="label" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Some Label here</label>
                <depends>
                    <field id="enabled">1</field>
                </depends>
            </field>

I edit the config on the default level and set the value for Enabled to 'Yes'.
I change the the config scope to one of my store views.

Expected Result:
I see the second field "Some Label here" visible and disabled and the checkbox "Use website" checked.
Actual Result
The second field "Some Label here" is visible and enabled and the checkbox "Use website" is checked.
Config
The issue does not reproduce if I remove the dependency (<depends> tag) from the second field.

I reproduced this while trying to create a config section for one of my modules, but it reproduces also in the core.
Visit System->Configuration->Customer Configuration->Create New Account Options.
Set Enable Automatic Assignment to Customer Group to Yes, Save and change the scope to store view level. Tax Calculation Based On field (and others) is visible and editable even if Use Website is checked.

Issue reproduced on alpha 104. I didn't find anything related to this in the alpha 105 change log, so I assumed it still reproduces. I will test on 105 and post what I find.

@monkeysee
Copy link
Contributor

Internal ticket: MAGETWO-31535

@muasir muasir added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Jan 23, 2015
@jilu1
Copy link
Contributor

jilu1 commented Apr 27, 2015

@tzyganu Could you please verify this issue with latest mainline code? We are not able to reproduce the problem.

@sshrewz sshrewz added Progress: needs update and removed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development labels Apr 27, 2015
@tzyganu
Copy link
Contributor Author

tzyganu commented Apr 28, 2015

@jilu1 If you cannot reproduce it anymore, you can close it. I will take a look in the next few days an reopen it if necessary.

@tzyganu
Copy link
Contributor Author

tzyganu commented Apr 28, 2015

@jilu1 You are right. This does not reproduce anymore. Thanks for the fix. (I couldn't wait a few more days so I tried it now 😄 )

@tzyganu tzyganu closed this as completed Apr 28, 2015
@jilu1
Copy link
Contributor

jilu1 commented Apr 28, 2015

@tzyganu Thank you for your quick response!

mmansoor-magento pushed a commit that referenced this issue Jan 24, 2017
Task
- MAGETWO-63236 Add ability to modify simple products data in custom websites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants