Skip to content

Commit

Permalink
Add patch, execute patch for 508 compliance (empty id)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferrisx4 committed Jun 8, 2021
1 parent 7a423af commit 62cedb7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
10 changes: 9 additions & 1 deletion post_migration_step2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
12 changes: 12 additions & 0 deletions scripts/tripal_ds-add_id.patch
Original file line number Diff line number Diff line change
@@ -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',
],
],
];

1 comment on commit 62cedb7

@Ferrisx4
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.