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.
I have error with parameters given when I want to use itoggle ajax and commerce product entity :
commerce_product_access, I think this way is better to test entity access :
itoggle.pages.inc
function _itoggle_ajax_toggle_field
L94
$access = entity_access('edit', $type, $entity);
replace
$access = call_user_func($info[$type]['access callback'], 'edit', $entity);
This code fix the bug for me.
Path in next post.
Comment | File | Size | Author |
---|---|---|---|
#1 | itoggle-wrongparametersforentityaccess-2110033-1.patch | 598 bytes | poukram |
Comments
Comment #1
poukram CreditAttribution: poukram commentedComment #2
alexweber CreditAttribution: alexweber commentedThanks for the contribution! Much-needed new release coming in a few hours...