Troubleshooting Case Number Field No Longer Read-Only
Symptom
After removing the case number field from the Cases module editview, the field is not read-only if it is added back to the layout.
Solution
To make the case number field read-only,
- Edit 'custom/modules/Cases/metadata/editviewdefs.php'
- Change the following line:
array( 'name'=>'case_number', 'displayParams'=>array('required'=>true) )
to:array( 'name'=>'case_number', 'type'=>'readonly', 'displayParams'=>array('required'=>true) )
- Save the file
- Navigate to Admin > Repair > Quick Repair and Rebuild
- Uncheck Repair Database
- Click Repair
The case number field should now be read only on the Cases editview.