diff --git a/post_migration_step2.sh b/post_migration_step2.sh index 3640865..3fda11b 100755 --- a/post_migration_step2.sh +++ b/post_migration_step2.sh @@ -67,4 +67,12 @@ drush sql-query --file=$(pwd)/scripts/drop_feature_relationships_script.sql ### as when a feature is deleted and its corresponding feature props ### need to be deleted as well) -drush sql-query --file=$(pwd)/scripts/add_constraints_1.3.sql \ No newline at end of file +drush sql-query --file=$(pwd)/scripts/add_constraints_1.3.sql + +### +### Apply a patch to provide an ID for certain elements. +### +### This is related to https://github.com/isdapps/i5k-tripal/issues/300 + +file_to_patch=$(find ../../.. -name 'tripal_ds.field_group.inc') +patch $file_to_patch -i scripts/tripal_ds-add_id.patch \ No newline at end of file diff --git a/scripts/tripal_ds-add_id.patch b/scripts/tripal_ds-add_id.patch new file mode 100644 index 0000000..604871c --- /dev/null +++ b/scripts/tripal_ds-add_id.patch @@ -0,0 +1,12 @@ +diff --git a/tripal_ds/includes/tripal_ds.field_group.inc b/tripal_ds/includes/tripal_ds.field_group.inc +index 4fd2406f..03b1a4ad 100755 +--- a/tripal_ds/includes/tripal_ds.field_group.inc ++++ b/tripal_ds/includes/tripal_ds.field_group.inc +@@ -65,6 +65,7 @@ function tripal_ds_add_summary_field_group($bundle_name, $fields) { + 'table_row_striping' => 0, + 'always_show_field_label' => 0, + 'classes' => 'group-summary-table field-group-table', ++ 'id' => 'group-summary-table', + ], + ], + ];