Starts in:
0 DAY
21 HRS
56 MIN
35 SEC
Starts in:
0 D
21 H
56 M
35 S
Open Closed

Issue with Module's Modal UI view javascript - I believe I've identified the issue #7688


User avatar
0
jgrovert created
  • **ABP Studio - 0.7.5
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:

TypeError: Cannot read properties of undefined (reading 'getCoreUserLookup') at Object.serviceMethod (<anonymous>:42:73) at Object.initModal (<anonymous>:18:55) at _initAndShowModal (modal-manager.js?_v=638579335540000000:135:60) at modal-manager.js?_v=638579335540000000:168:33 at UrlInfo.handleCallbacks (abp.jquery.js?_v=638580777474340000:317:33) at _loadFromUrl (abp.jquery.js?_v=638580777474340000:363:25) at Object._loadScript [as loadScript] (abp.jquery.js?_v=638580777474340000:375:13) at HTMLDivElement.<anonymous> (modal-manager.js?_v=638579335540000000:167:48) at HTMLDivElement.<anonymous> (jquery.js?_v=638491862888070000:10243:14) at Function.each (jquery.js?_v=638491862888070000:383:19)

  • Steps to reproduce the issue: In ABP Suite, create module (AthletesSocial.Core). Add two entities (Athlete, CoreUser). Create 1:n relationship between CoreUser to Athlete with Modal UI Pick type. Create new Athlete, try to pick CoreUser. Javascript error above occurs.

Issue seems to be in /Pages/Core/createModal.js and editModal.js

This line doesn't work (what is generated by ABP Suite): return window.athletesSocial.core.athletes.athletes.getCoreUserLookup;

This line does (manually changed - notice the second athlete, not athletes): return window.athletesSocial.core.athletes.athlete.getCoreUserLookup;


3 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, thanks for the explanation I'll try to reproduce the problem and fix it asap.

  • User Avatar
    0
    jgrovert created

    Were you able to reproduce this?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Were you able to reproduce this?

    Unfortunately, I could not reproduce it. By any chance, can you share your entity metadata so I can try to generate the same entities as yours?

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06