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

Bug in mergeElements function (Elements service) #5450

Closed
tim-van-dijkhuizen opened this issue Jan 16, 2020 · 1 comment
Closed

Bug in mergeElements function (Elements service) #5450

tim-van-dijkhuizen opened this issue Jan 16, 2020 · 1 comment
Labels
bug severity:normal Bugs that affect typical usage

Comments

@tim-van-dijkhuizen
Copy link

tim-van-dijkhuizen commented Jan 16, 2020

Description

I'm trying to merge two elements but this query causes an error. The relations table doesn't even have an elementId column.

$db->createCommand()

Context:
https://i.postimg.cc/BQBnTG1j/discord-screenshot.png

Steps to reproduce

  1. Try merging two elements using the mergeElements() function
  2. DatabaseException

Additional info

I currently don't have access to the stacktrace but it should be obvious what is causing the error.

  • Craft version: 3.3.16.3
  • PHP version: 7.1.6
  • Database driver & version: MySQL 5.5.59
  • Plugins & versions: No plugins involved
brandonkelly added a commit that referenced this issue Jan 16, 2020
@brandonkelly
Copy link
Member

Thanks for posting the GitHub issue! Just fixed this for the next Craft 3.4 release.

@brandonkelly brandonkelly added this to the 3.4 milestone Jan 16, 2020
@brandonkelly brandonkelly added bug severity:normal Bugs that affect typical usage labels Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug severity:normal Bugs that affect typical usage
Projects
None yet
Development

No branches or pull requests

2 participants