Internal messages in stream as default

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emillod
    Active Community Member
    • Apr 2017
    • 1430

    Internal messages in stream as default

    Is that possible to mark every post as internal message in stream by default?
    I want to avoid situation when someone forget to check that little lock icon. I prefer to switch that situation and change that lock icon to clicked by default.,.
    Is that possible?
  • dimyy
    Active Community Member
    • Jun 2018
    • 569

    #2
    I hope russian interface in attachment is not big trouble.

    Admin->Entity Manager->Note -> field isInternal ->check Default
    Attached Files

    Comment

    • emillod
      Active Community Member
      • Apr 2017
      • 1430

      #3
      Great idea, BUT.....
      After i checked Default of field "isInternal" nothing happend. I still have unchecked lock icon in stream under task..

      Comment

      • dimyy
        Active Community Member
        • Jun 2018
        • 569

        #4
        You are right. Unfortunately this is system problem. Original code not use default value as initial value for isInternalNoteMode.

        https://github.com/espocrm/espocrm/b.../panel.js#L133.

        I appologize if you try to modify code:

        Code:
        this.isInternalNoteMode =  this.getMetadata().get('entityDefs.Note.fields.isInternal.default');
        all be ok.

        Update:

        isInternalNoteMode not transfered to view.



        add to data function:

        Code:
        data.isInternalNoteMode = this.isInternalNoteMode;
        Last edited by dimyy; 03-27-2019, 08:30 AM.

        Comment

        • emillod
          Active Community Member
          • Apr 2017
          • 1430

          #5
          Thanks. Can you tell me how can i modify this file to protect this change from updates?

          Comment

          • dimyy
            Active Community Member
            • Jun 2018
            • 569

            #6
            Unfortunately I don't see any way to do it.

            May be tanya or yuri can help.

            Comment

            • emillod
              Active Community Member
              • Apr 2017
              • 1430

              #7
              Maybe i'll be able to create custom view file for that

              Comment

              Working...