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.
Hey guy,
thank you developed this great module. But there is little issue here:
$items['entity_collection/autocomplete/%entity_collection/%/%/%'] = array(
'title' => 'entity_collection autocomplete',
'page callback' => 'entity_collection_content_form_autocomplete',
'page arguments' => array(2, 3, 4),
'access callback' => 'entity_collection_access',
'access arguments' => array('add content to', 2),
'type' => MENU_CALLBACK,
'file' => 'entity_collection.admin.inc',
);
$items['entity_collection/autocomplete/%entity_collection/%/%/%'] = array(
'title' => 'entity_collection autocomplete',
'page callback' => 'entity_collection_content_form_autocomplete',
'page arguments' => array(2, 3, 4, 5), // <strong>Please add 5 here. you missed it</strong>
'access callback' => 'entity_collection_access',
'access arguments' => array('add content to', 2),
'type' => MENU_CALLBACK,
'file' => 'entity_collection.admin.inc',
);
Cheers
Jackey
Comment | File | Size | Author |
---|---|---|---|
#4 | add_missing_argument-1895152-4.patch | 911 bytes | pontus_nilsson |
Comments
Comment #1
jziwenchen CreditAttribution: jziwenchen commentedOpen it .
Comment #2
c4rl CreditAttribution: c4rl commentedCan you post a patch, please?
Comment #3
timbrandin CreditAttribution: timbrandin commentedAny progress with the patch?
Comment #3.0
timbrandin CreditAttribution: timbrandin commentedChanged issue description.
Comment #4
pontus_nilssonHere comes the tiny patch that fixes the autocomplete so that it passes the string.
Comment #5
pontus_nilssonFixed in e7dca43