Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, testing the content access rules integration I've found a minor bug.
On content_access.rules.inc, function content_access_list_to_checkboxes() calls _content_access_get_operations_lables($operations) which doesn't exists.
A simple fix would be to remove that call:
$labels = _content_access_get_operations_lables($operations);
and change the line:
$checkboxes[$op]['#title'] = t($labels[$op]);
to:
$checkboxes[$op]['#title'] = t($op);
Thanks for the attention.
Comment | File | Size | Author |
---|---|---|---|
#1 | fix-labels-1110860-1.patch | 736 bytes | 13rac1 |
Comments
Comment #1
13rac1 CreditAttribution: 13rac1 commentedPatch for this change attached.
Comment #3
BenK CreditAttribution: BenK commentedSubscribing
Comment #4
good_man CreditAttribution: good_man commentedre. test failing. #1144510: Fix roles selection in test case
Comment #5
good_man CreditAttribution: good_man commented#1: fix-labels-1110860-1.patch queued for re-testing.
Comment #6
good_man CreditAttribution: good_man commentedCommitted thanks a lot, hope we can finish Rules integration soon.