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.
The schema for facebook publications is as follows:
/**
* Implements hook_schema().
*/
function fb_autopost_entity_schema() {
$schema['facebook_publication'] = array(
...
'facebook_id' => array(
'type' => 'varchar',
'length' => 255,
'description' => "The id returned by Facebook after a successful publication.",
),
...
);
}
But... The FacebookPublicationEntity
class is defined thusly:
/**
* The class used for Facebook publication entities.
*/
class FacebookPublicationEntity extends Entity {
...
/**
* The ID string returned from Facebook on publication.
*
* @var string
*/
public $facebookid;
...
/**
* Gets the associated facebook_id.
*
* @return string
* String representing the Facebook ID.
*/
public function facebookid() {
return $this->facebookid;
}
...
}
It looks like the class should be modified to use facebook_id
instead. Otherwise, the ID is not saved or loaded properly from the database.
Comment | File | Size | Author |
---|---|---|---|
#1 | fb_autopost-field_name_typo-2327435-1.patch | 523 bytes | GuyPaddock |
Comments
Comment #1
GuyPaddock CreditAttribution: GuyPaddock commentedThe attached patch corrects the typos.
Comment #3
e0ipso@GuyPaddock Thanks a lot for contributing. Sorry it take so long to commit.
Comment #4
GuyPaddock CreditAttribution: GuyPaddock commentedNo problem. Thanks!