What's a f..ck mistake ...... the error is on the top of the js file !
as it's "linkMultiple" ... i must :
['views/fields/link-multiple'] and not ['views/fields/link']
there are some day so
Link Multiple Field strange save but not save
Collapse
X
-
find the issue
it's a custom view for filter related entity
PHP Code:define('custom:views/clinic/fields/epidemio-filtered-link-a', ['views/fields/link', 'model'], function (Dep, Model) { return Dep.extend({ setup: function () { Dep.prototype.setup.call(this); let contact = new Model; contact.urlRoot = 'Contact'; contact.id = this.model.attributes['contactId']; contact.fetch() .then(() => { this.selectPrimaryFilterName = contact.attributes['type'] this.selectBoolFilterList = ['Active','HeadingA'] }) }, }); });
do you have a idea why the filtered values make this issue ? -
Link Multiple Field strange save but not save
Hi,
strange, i just see in v8.1 (not tested on past version.)
i have a entity with many relation to same entity. So i name the relation : epidemioA .. epidemioB.. epidemioC
i have Link Multiple Field checked.
when i select a related record on "Link Multiple Field", and save => notification "saved" is green.
no error.
when i refresh the page, nothing is saved.
there are no error log (debug), nothing in front-end to.
But when a do the same in bottom panel, the relation is saved.
Maybe because i have added a A (letter, out-of-box espocrm add a digit)
Strange put header is OK.. with payload and status code = 200.
Any idea ?
Work perfectly on demo. so i don't know where to log without log :s
PHP Code:[2024-01-12 18:26:29] DEBUG: Schema\Builder: ManyMany for Clinic.epidemiosB [2024-01-12 18:26:29] DEBUG: Schema\Builder: ManyMany for Clinic.epidemiosA [2024-01-12 18:26:29] DEBUG: Schema\Builder: ManyMany for Clinic.epidemios
PHP Code:Clinic clinics Many-to-Many epidemios Epidemio Clinic clinicsA Many-to-Many epidemiosA Epidemio Clinic clinicsB Many-to-Many epidemiosB Epidemio
PHP Code:"epidemiosA": { "type": "hasMany", "relationName": "clinicEpidemioA", "foreign": "clinicsA", "entity": "Epidemio", "audited": false, "isCustom": true }, "epidemiosB": { "type": "hasMany", "relationName": "clinicEpidemioB", "foreign": "clinicsB", "entity": "Epidemio", "audited": false, "isCustom": true },
PHP Code:"clinicsA": { "type": "linkMultiple", "layoutDetailDisabled": true, "layoutMassUpdateDisabled": true, "layoutListDisabled": true, "noLoad": true, "importDisabled": true, "exportDisabled": true, "customizationDisabled": false, "isCustom": true }, "clinicsB": { "type": "linkMultiple", "layoutDetailDisabled": true, "layoutMassUpdateDisabled": true, "layoutListDisabled": true, "noLoad": true, "importDisabled": true, "exportDisabled": true, "customizationDisabled": true, "isCustom": true },
Last edited by item; 01-12-2024, 07:16 PM.Tags: None
Leave a comment: