-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
dev/core/issues/842, Fixed code to update website rather delete #13929
Conversation
(Standard links)
|
@pradpnayak are you able to add a unit test to this and do you have any idea of when it broke? |
@seamuslee001 this was reported in https://civicrm.stackexchange.com/questions/29114/inline-editing-of-website-field-deletes-it which can be replicated on >= 5.10 Not sure but it may be related to these commits #13169 and #13170 |
@pradpnayak this has been a really fragile bit of functionality :-( Would be v grateful if you can add a test so we can hopefully break the cycle |
@elisseck are you able to review? |
This issue is more of UI so do you want me to add unit test for UI submit or just for the CRM_Core_BAO_Website::process() function? Thanks |
@pradpnayak I had assumed the latter - does that work out or is it kinda pointless? |
@eileenmcnaughton Yes i'll be happy to review this since my recent PRs touched this functionality (although i'm not 100% sure how they would have caused this :) ). Should be able to get to it tonight. |
Okay I tested this on a buildkit build of current 5.13.alpha1 and i'm seeing some really strange behavior that I don't understand. The behavior described in the issue is not consistent at all for me. Here is a little screencast you'll see a failure when I add the 4th website but you'll see a bunch of successes as well. This is mostly FYI for writing this test I think it's going to be confusing: However weird this is... checking out the PR does seem to resolve this issue after editing websites for a few minutes I saw no more issues... so my review is as follows:
|
@elisseck caught out huh :-) But thanks for doing the review |
This fixes the issue for me, on 5.11.0 / Drupal 7.65. Thanks @pradpnayak! |
I think this needs to be merged into 5.12. |
I've put this against 5.12 #13939 (perhaps we can still get that test against master :-) |
Closing as merged through via 5.12 - would be happy to see that test though :-) |
Overview
https://lab.civicrm.org/dev/core/issues/842
Before
Website gets deleted when updated
After
Website is updated