Details
-
Type: Sub-task
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Won't Do
-
Affects Version/s: HR-1.0
-
Fix Version/s: HR-1.0
-
Component/s: None
-
Labels:None
Description
The hrvisa ext currently defines a custom-data group called "Immigration". We need to update hrvisa and override the tab used by this custom-data group so that it displays as a table. This can be done with a profile form. There are examples from hrident, hrmed, and hrqual. For example:
https://github.com/civicrm/civihr/commit/4f245af93452ab688e616006d9dec624d047c9b7
The process still requires a bit of manual work. Specifically –
(a) install hrvisa to create the CustomGroup,
(b) create profile form in UI,
(c) use bin/migrate/export.php to get an XML dump of the profile form,
(d) copy the relevant XML entries for ProfileGroup, ProfileField, and ProfileJoin to hrvisa/xml/auto_install.xml,
(e) tweak the internal name of the profile (e.g. instead of "Immigration_123" use "hrvisa_tab"),
(f) mark the ProfileGroup with <is_reserved>1</is_reserved>
(g) add the hook
(h) drop/create site's db. reinstall hrvisa and verify that it works