Bug on new module

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • caffeine
    Member
    • Aug 2014
    • 48

    Bug on new module

    Hi, I'm creating a new module called "articleManager", inside this articleManager I have an entity called Projects, I'm having 2 problems with this:
    1. Localization: I create my own Global.json for Tab and Label localization but it doesn't work, I had to create an entry in 'Espo\Modules\Crm\Resources\i18n' Global.json to add my own module title in each language.
    2. When I click on my fresh created "Project" or when I try to create a new one, I get this console error: Uncaught Error: Could not load file 'client/src/views/detail.js'
      It should be looking in: 'client/modules/article-manager/src/views/project/detail.js'
    Last edited by caffeine; 08-06-2014, 02:33 PM. Reason: New error
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hello

    Can you attach your module here?
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • caffeine
      Member
      • Aug 2014
      • 48

      #3
      Client Part: https://www.dropbox.com/s/o4nj0lvl5w...le-manager.zip

      application Part: https://www.dropbox.com/s/ng77qb069z...cleManager.zip

      Thanks yuri.

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        1.
        In localization file you put redundant commas in the end of lists. It's not valid JSON.

        2. article-manager/src/views/project/detail.js There is no return Dep.extend({});

        If you don't need to add any custom client logic you should remove this file. Remove that from clientDefs.

        P.S. It's better to name module with first latter in upper case.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • caffeine
          Member
          • Aug 2014
          • 48

          #5
          1) You are absolutelly correct.

          2) Done.

          Thank you for your help, I'm really excited about this CRM.

          Comment

          Working...