Duplicated "Task"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lukasz412
    Member
    • Sep 2016
    • 50

    Duplicated "Task"

    Hi. I have problem with "Task". I want to do every name "Task" make unique. Is there a possibility to make a mechanism which will it be informing me about duplicated "Task", when i'm adding new one, with already existing same name. It's the same case like duplicated "Accounts".
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hi


    Fields are checked you can find in application/Espo/Modules/Crm/Services/{EntityName}.php getDuplicateWhereClause method.
    You can override needed service

    open application/Espo/Modules/Crm/Services/Account.php. There you can see the function you have to add to Task service

    B/R,
    Tanya

    Comment

    • lukasz412
      Member
      • Sep 2016
      • 50

      #3
      Thanks, I'll tell that to the programmer. I hope he will handle that.

      Comment

      • kanoriuta
        Junior Member
        • Jan 2017
        • 11

        #4
        Hello, Tanya

        You can override needed service
        I created file in custom/Espo/Modules/Crm/Services/Account.php but the original file is still loaded. Any suggestions what's wrong with my override path?

        Comment

        • tanya
          Senior Member
          • Jun 2014
          • 4308

          #5
          Hello

          Wrong path
          I have problem with transforming "Lead" into "Account". When i directly add new "Account", there is error 409 and copy is not


          But as I understand, you wanted to override Task service, but did Account service

          Comment

          Working...