Announcement

Collapse
No announcement yet.

Link Multiple Field strange save but not save

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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:29DEBUGSchema\BuilderManyMany for Clinic.epidemiosB  
    [2024-01-12 18:26:29DEBUGSchema\BuilderManyMany for Clinic.epidemiosA  
    [2024-01-12 18:26:29DEBUGSchema\BuilderManyMany 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
            
    },​ 

    Click image for larger version  Name:	Screenshot 2024-01-12 at 19.33.11.png Views:	0 Size:	61.6 KB ID:	101542
    Attached Files
    Last edited by item; 01-12-2024, 07:16 PM.

  • #2
    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 (DepModel) {
        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']
                    })
            },
        });
    });
    ​ 
    telecastg

    do you have a idea why the filtered values make this issue ?

    Comment


    • telecastg
      telecastg commented
      Editing a comment
      hi item sorry I don't know

    • item
      item commented
      Editing a comment
      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
Working...
X