Details
-
Bug
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
None
Description
To recreate:
1) Create a item record which does not have a status.
2) In the inventory app access the associated instance.
3) Under the holdings section, click on the created item in the list of items.
4) The item details will not appear, and instead the following error occurs:
bundle.9e8313796a1327649525.js:77 TypeError: Cannot read property 'name' of undefined
at t.value (bundle.9e8313796a1327649525.js:103)
at So (bundle.9e8313796a1327649525.js:77)
at Lo (bundle.9e8313796a1327649525.js:77)
at pi (bundle.9e8313796a1327649525.js:77)
at fi (bundle.9e8313796a1327649525.js:77)
at Gi (bundle.9e8313796a1327649525.js:77)
at Ui (bundle.9e8313796a1327649525.js:77)
at Yi (bundle.9e8313796a1327649525.js:77)
at Bi (bundle.9e8313796a1327649525.js:77)
at bi (bundle.9e8313796a1327649525.js:77)
It appears to be trying to access "name" on status, when status is undefined.
Potential solutions include a null check on status before any of its properties are accessed, or the backend solution of making status a required property of a holding.
TestRail: Results
Attachments
Issue Links
- is blocked by
-
MODINVSTOR-137 Newly created Items do not have a default status.
-
- Closed
-
- relates to
-
UIIN-207 Saving new instance with empty publisher field fails with "ERROR: j.publication[0] is null"
-
- Closed
-