Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Flavio Spezi 128 posts 314 karma points
    Nov 05, 2014 @ 17:21
    Flavio Spezi
    1

    Tiny issue in plugin: "index is not defined".

    I created a little DataType with these fields: "Title" and "Text".
    Then I add a new property to a DocumentType, with this DataType.

    I create a new node of the DocumentType, but I look that the Grid does not works properly. I look only the label, a gray rectangle and "Add row" button.

    Looking in Console of browser, i find this:

    ReferenceError: index is not defined  
        at resetProertiesEditors (http://localhost:5555/Dependenc...
    

    I found the issue in App_Plugins/u7dtg/u7dtg.controller.js, row 66:

    // clean watchers before set again.
    for (index = 0; index < propertiesEditorswatchers.length; ++index) {
        propertiesEditorswatchers[index]();
    }
    

    To solve, you can replace these lines with this:

    // clean watchers before set again.
    for (var index = 0; index < propertiesEditorswatchers.length; ++index) {
        propertiesEditorswatchers[index]();
    }
    

    After the update, it is important to delete the ClientDependency folder in App_Data/Temp to clear the cache of ClientDependency.

  • gilad 185 posts 425 karma points
    Dec 02, 2014 @ 01:39
    gilad
    0

    Hi Flavio.
    Thanks, it is fixed in current version 1.2 

Please Sign in or register to post replies

Write your reply to:

Draft