In version 5.0.0 and 5.1.0RC the SOAP call get_entry for module EmailAddresses always returns an empty result.
This is because module /metadata/email_addressesMetaData.php defines $dictionary['email_addresses']['fields'] in a wrong way. The keys in the array must be set to the field names.
After changing the module you must clear the cache by admin - repair.
Wrong definition:
Corrected definition:PHP Code:'fields' => array(
array(
'name' => 'id',
'type' => 'id',
'required' => true,
),
array(
'name' => 'email_address',
'type' => 'varchar',
'length' => 100,
'required' => true,
),
array(
'name' => 'email_address_caps',
'type' => 'varchar',
'length' => 100,
'required' => true,
),
array(
'name' => 'invalid_email',
'type' => 'bool',
'default' => 0,
),
array(
'name' => 'opt_out',
'type' => 'bool',
'default' => 0,
),
array(
'name' => 'date_created',
'type' => 'datetime'
),
array(
'name' => 'date_modified',
'type' => 'datetime'
),
array(
'name' => 'deleted',
'type' => 'bool',
'default' => 0,
),
),
I opened Bug No 24144 for this issue.PHP Code:'fields' => array(
'id' => array(
'name' => 'id',
'type' => 'id',
'required' => true,
),
'email_address' => array(
'name' => 'email_address',
'type' => 'varchar',
'length' => 100,
'required' => true,
),
'email_address_caps' => array(
'name' => 'email_address_caps',
'type' => 'varchar',
'length' => 100,
'required' => true,
),
'invalid_email' => array(
'name' => 'invalid_email',
'type' => 'bool',
'default' => 0,
),
'opt_out' => array(
'name' => 'opt_out',
'type' => 'bool',
'default' => 0,
),
'date_created' => array(
'name' => 'date_created',
'type' => 'datetime'
),
'date_modified' => array(
'name' => 'date_modified',
'type' => 'datetime'
),
'deleted' => array(
'name' => 'deleted',
'type' => 'bool',
'default' => 0,
),
),


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks