Announcement

Collapse
No announcement yet.

switch to numeric date in Email settings

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

  • switch to numeric date in Email settings

    I prefer numeric date format in all my entities, but Email entity is not customizable. How can I achieve it there?

  • #2
    You can just make the field like dateSent custom under custom\Espo\Custom\Resources\metadata\entityDefs\E mail.json

    PHP Code:
    {
        
    "fields": {
            
    "dateSent": {
                
    "customizationDisabled"false
                 
    "useNumericFormat"true,
                
    "minuteStep"30​
            
    }
        }
    }
    ​ 

    You can apply this to all fields that are by default have customizationDisabled => false under the original entityDefs of Email.json
    This will allow the field to be customizable and at the same time use the numeric format.

    Cheers

    Comment


    • shalmaxb
      shalmaxb commented
      Editing a comment
      I guess, this would not be update safe, right.

    • rabii
      rabii commented
      Editing a comment
      this should be upgrade safe but consider what yuri mentioned here.

  • #3
    I do not recommend to disable "customizationDisabled" for fields. It is made for reason. More headache for us with broken systems. Sometimes I wish Espo were not too customizable.

    Comment


    • shalmaxb
      shalmaxb commented
      Editing a comment
      I understand that and I avoid messing with the non customizable things. But perhaps it could be an idea, if you consider to offer a global configuration for date numeric or not.
      Besides that, I would not wish, espoCRM would be less customizable, it brings so much fun and cheerful moments to my life.....

    • rabii
      rabii commented
      Editing a comment
      I understand, was just trying to help

    • shalmaxb
      shalmaxb commented
      Editing a comment
      rabii, no doubt and thank you
Working...
X