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

creating a custom item on a relationship type custom object error #269

Open
1 task done
npracht opened this issue May 19, 2022 · 5 comments
Open
1 task done

creating a custom item on a relationship type custom object error #269

npracht opened this issue May 19, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@npracht
Copy link

npracht commented May 19, 2022

Mautic Version

4.2.x series

PHP version

no matter

What browsers are you seeing the problem on?

Not relevant

What happened?

It is not possible to create an item from a custom object of a relationship type. Forms generate validation error.

How can we reproduce this issue?

  1. Create a CO booking
  2. Create a sub CO product with relashionship
    image
  3. Create a product item and see error:
    image

Relevant log output

No response

Code of Conduct

  • I confirm that I have read and agree to follow this project's Code of Conduct
@npracht npracht added the bug Something isn't working label May 19, 2022
@adamchemiawppl
Copy link

Any progress on this one? Right now testing on Acquia and encountered this error as well - in my business case it's a deal breaker

@oktasense
Copy link

oktasense commented Oct 8, 2023

I get the same error on Mautic v4.4.10, Custom Object 1.0.0 plugin installed.

I created a custom object of relationship type -> id 4.

I cannot create any relationship item via the mautic interface.

I added an item manually to the db

db table -> custom_item
field -> custom_object_id -> 4

then, mautic displays the custom relationship item this way...

mautic-custom-obj-relationship-item-1

The value that cannot be blank is the name field. See the screen below:

mautic-custom-obj-relationship-item-2

It is empty so when you click on save, you get the error:

mautic-custom-obj-relationship-item-3

The solution would be to display the name field on the mautic ui.

You can also enter directly the custom relationship item name in the db table custom_item. See the screen below:

mautic-custom-obj-relationship-item-4

You can add relationship items to a custom object this way...

  1. Select a contact on the contacts view
  2. Select the custom object tab
  3. Click on the Link existing button

mautic-custom-obj-relationship-item-5a

  1. On the popup (Link a OBJECT with this contact), click on the action column select box and click on 'Link'
  2. On the relationship fields popup, enter the relationship fields and click on Save & close

mautic-custom-obj-relationship-item-5

@kuzmany
Copy link

kuzmany commented May 20, 2024

Based on this comment (#277 (comment)), this relationship was built for a specific customer and currently, there are no documents or maintenance for it.

@escopecz, should we hide this option for now? And mark it as deprecated, planning to remove it from the codebase later? What's the plan for this from Acquia side? It make confused the users

@escopecz
Copy link
Contributor

@gunnrryy WDYT?

@kuzmany
Copy link

kuzmany commented May 20, 2024

Just note:

I'm currently working on developing a system for managing relationships for children. This will allow us to filter, for example, for orders and the products associated with those orders. I can add a new type and make use of the master object field for it.

However, the question remains about what we plan to do with this type of relationship moving forward. For our project, I intend to hide it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants