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

Empty Checkout Agreement Edit Form when Single Store Mode is enabled #7822

Closed
RedEnzian opened this issue Dec 15, 2016 · 18 comments
Closed

Empty Checkout Agreement Edit Form when Single Store Mode is enabled #7822

RedEnzian opened this issue Dec 15, 2016 · 18 comments
Assignees
Labels
bug report Component: Checkout Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@RedEnzian
Copy link

Preconditions

  1. Fresh installed Magento 2.1.3
  2. PHP 5.6.28

Steps to reproduce

  1. Fresh Installation of Magento 2.1.3
  2. Goto Stores->Terms & Conditions
  3. Add new Condition
  4. Try to edit Condition (works)
  5. Switch to Single Store Mode
  6. Try to edit Condition (does not work)
  7. Add new Condition
  8. Try edit new condition (does not work)

Expected result

  1. Show the prefilled edit form for checkout agreements

Actual result

  1. When in Production Mode there is no form displayed when clicking edit on an existing agreement
  2. When in development Mode, there is an exception displayed. Attached the exception to this issue
    magento_checkout_agreement_exception.txt
@miakusha
Copy link
Contributor

Hi @RedEnzian thank for report
We've created internal ticket MAGETWO-63840 to address this issue.

@miakusha miakusha added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Jan 30, 2017
@miakusha miakusha removed their assignment Feb 8, 2017
@magento-engcom-team magento-engcom-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Component: Checkout Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed labels Sep 11, 2017
@gwharton
Copy link
Contributor

I see this error on Magento 2.2.0 when there is only one store/website. If I create multiple stores it works as expected.

@magento-engcom-team
Copy link
Contributor

@RedEnzian, thank you for your report.
We've created internal ticket(s) MAGETWO-63840, MAGETWO-80764 to track progress on the issue.

@magento-engcom-team magento-engcom-team added 2.2.x Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Oct 11, 2017
@gwharton
Copy link
Contributor

Still broken in 2.2.2

@RomaKis RomaKis self-assigned this Jan 3, 2018
@RomaKis
Copy link
Contributor

RomaKis commented Jan 3, 2018

Working on this.

@magento-engcom-team magento-engcom-team added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Apr 28, 2018
@magento-engcom-team
Copy link
Contributor

Hi @RedEnzian. Thank you for your report.
The issue has been fixed in magento-engcom/magento2ce#1157 by @RomaKis in 2.2-develop branch
Related commit(s):

The fix will be available with the upcoming 2.2.5 release.

@gwharton
Copy link
Contributor

This is not fixed in 2.3-develop. Isn't there a procedure to follow to ensure that when bug fixes are committed to 2.2-develop, that they are also ported to 2.3-develop if required at the same time? Otherwise, when we all switch to 2.3.0 in "whenever it is released" time this bug will magically reappear?

@gwharton gwharton reopened this Apr 28, 2018
@gwharton
Copy link
Contributor

gwharton commented May 8, 2018

@RomaKis can this be forward ported to 2.3-develop please otherwise it will rear its ugly head in the future.

@magento-engcom-team
Copy link
Contributor

Hi @gwharton
We keep track of the 2.2-develop Pull Requests and their ports to 2.3-develop. It's unlikely that 2.3 will be released without the fix. Also, please feel free to submit a Pull Request with the fix, that would help a lot.

Thank you for collaboration.

@gwharton
Copy link
Contributor

gwharton commented May 8, 2018

Brilliant, thanks @magento-engcom-team
I just wasn't sure of the Back/Forward porting strategy and whether there was a process to sweep up PR's that needed forwardporting prior to 2.3 release.

@magento-engcom-team
Copy link
Contributor

Hi @RedEnzian. Thank you for your report.
The issue has been fixed in #15063 by @gwharton in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.0 release.

@magento-engcom-team magento-engcom-team added the Fixed in 2.3.x The issue has been fixed in 2.3 release line label May 12, 2018
magento-engcom-team added a commit that referenced this issue May 12, 2018
…t Edit Form when Single Store Mode is enabled #15063

 - Merge Pull Request #15063 from gwharton/magento2:2.3-develop-7822
 - Merged commits:
   1. d61fe1d
   2. 9c4a26f
   3. 76be1b9
magento-engcom-team pushed a commit that referenced this issue May 12, 2018
…t Edit Form when Single Store Mode is enabled #15063
@onepack
Copy link

onepack commented Oct 29, 2018

My error is a bit different from the one posted by @RedEnzian.
I get a database error but the end result is the same. No option to edit an agreement document.

Magento 2.2.6
PHP 7.1.23
Sample data installed.
Single-store mode is off.
agreement_bug.txt

@gwharton
Copy link
Contributor

@onepack, have you had a look at your database to check that table.

mysql> use dev_magento; describe checkout_agreement_store;
Database changed
+--------------+----------------------+------+-----+---------+-------+
| Field        | Type                 | Null | Key | Default | Extra |
+--------------+----------------------+------+-----+---------+-------+
| agreement_id | int(10) unsigned     | NO   | PRI | NULL    |       |
| store_id     | smallint(5) unsigned | NO   | PRI | NULL    |       |
+--------------+----------------------+------+-----+---------+-------+
2 rows in set (0.00 sec)

What happens if you run

use database_name; describe checkout_agreement_store;

@onepack
Copy link

onepack commented Oct 30, 2018

@gwharton,
Thank you for your reply! Really appreciated.

I have the exact same outcome as above.
After googling a bit I found a stackexchange post with the same issue.
https://magento.stackexchange.com/questions/244961/checkout-agreement-store-doesnt-exist
I will have a look at that now.

@gwharton
Copy link
Contributor

Ahh right. Seems like something to do with database table prefixes. Does your test case have table prefixes. If so, please raise a new issue with steps to reproduce from a fresh magento install.

@onepack
Copy link

onepack commented Oct 30, 2018

Yes, I use prefixes for security purposes. I will check if this is indeed the source of this issue.

@onepack
Copy link

onepack commented Oct 30, 2018

I deployed the suggested change from stackexchange to the dev environment and this solved the bug. I can even see the added condition now in the grid that was not visible before. So yes this seems to be a prefix issue.

@gwharton
Copy link
Contributor

@onepack.

Here is your issue #18357

Here is the 2.3 PR #18412

Here is the 2.2 PR #18866

The 2.2 change has yet to be merged.

magento-devops-reposync-svc pushed a commit that referenced this issue Aug 23, 2022
Fix links in Readme of the WishlistGraphQl module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Checkout Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

7 participants