Skip to content

Custom fields bug #77

@Sandbird

Description

@Sandbird

There is a bug with the relationship definition in the Deal model.
The morph column is field_valueable_id not custom_field_valueable_id, so this should be 'field_valueable'.

    /**
     * Get all of the lead's custom field values.
     */
    public function customFieldValues()
    {
        return $this->morphMany(\VentureDrake\LaravelCrm\Models\FieldValue::class, 'field_valueable');
    }

(Same goes for models: Invoice, Lead, Order, PurchaseOrder, Quote)

There is also a problem when saving a Deal with custom fields (guess in other models as well), the value doesn't get saved, but I have to dig deeper for that.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions