SG-4346 Work Requests - Type field blank for records of type Preventive Maintenance |
Description |
|
When a work order is generated from a PM schedule, the work order appears also in Work request screen. But on the record view the Type is blank, and also when navigating the second time to the list view the type is blank there, where it the first time was shown. Also status can not be changed in this case as we get error ‘Work type is invalid’ Steps to reproduce: # PM schedules - create a PM schedule of type Fixed, frequency 1 Week. # PM schedules | Equipment - add a piece of equipment with today as due date. # Generate WO's - Populate the PM Code and through today's date, and generate the WO's. # Work Requests | List view - add field Type to the dataspy. # Work Requests | List view - first time we see the type as Preventive Maintenance. # Work Requests | Record view - see the Type is blank. # Work Requests | Record view - try to change the status - get error Work type is invalid. # Work Requests | List view - when navigating second time to the list view the Type is now blank here too. Current behavior - Type is blank, which also causes an error when changing status. Expected behavior - Type displayed in List and record view. |