I there any way that I can re-use a field from the drealty module in a node content type. Specifically I would like to re-use a geofield that I use in the drealty content types.

Comments

bloomt created an issue. See original summary.

veronicaseveryn’s picture

Assigned: Unassigned » veronicaseveryn

If you first create a field not on a Drealty entity type, e.g. on the node first, then you can re-use it with a Drealty entity configuration.

Otherwise, if you have access to DB (e.g. with a tool like MySQL or something else) you can alter field config in the table that will remove restrictions from the field - but it's ONLY IF YOU KNOW WHAT YOU'RE DOING!!

And the third solution - it needs to be fixed inside Drealty module - which is what I am gonna work on in the nearest future.

veronicaseveryn’s picture

Status: Active » Needs review
StatusFileSize
new2.81 KB

Adding a patch.

veronicaseveryn’s picture

The patch provided above will work for the newly created fields. It will save them in the database without entity type restrictions. This patch is not gonna fix existing fields (if you need to, you'll have to adjust the record in the database manually, as described previously).

  • veronicaSeveryn committed c1c9b8f on 7.x-3.x
    Issue #2722701 by veronicaSeveryn: Fixed Drealty field instances...
veronicaseveryn’s picture

Status: Needs review » Fixed

The patch has been commited

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

notanumber6789’s picture

I have hundreds of existing fields that I need to re-use in another entity type. Can you describe how I can use sql to remove restrictions on each, for example field_mlsnumber? Is there any way to safely do this for all drealty fields, instead of one by one?