using the Nov 3rd dev version...

After installing for the first time on a different db, keep getting reference to a field that does not exist
"api_username"

after changing "api_username" to "supplier_api_username", all seemed to work unless the field in "invoice_templates" is supposed to be "api_username" ?

code changed here was as follows - added "supplier_" where it was needed
Search "api_username" (10 hits in 5 files)
C:\xampp\htdocs\d7\sites\all\modules\invoice\invoice.install (3 hits)
Line 191: 'supplier_api_username' => array('type' => 'varchar', 'length' => 100, 'not null' => FALSE),
Line 212: db_add_field('invoice_templates', 'api_username', array('type' => 'varchar', 'length' => 100, 'not null' => FALSE));
Line 214: return t('Successfully added the api template column "api_username".');
C:\xampp\htdocs\d7\sites\all\modules\invoice\invoice.module (2 hits)
Line 583: 'api_username' => $fv[$template . '_api_username'],
Line 583: 'api_username' => $fv[$template . '_api_username'],
C:\xampp\htdocs\d7\sites\all\modules\invoice\invoice_api.inc (1 hits)
Line 155: $username = _invoice_get_variable($template, 'api_username', '');
C:\xampp\htdocs\d7\sites\all\modules\invoice\invoice_form.inc (3 hits)
Line 563: $form['general']['api']['api_username'] = array(
Line 782: $form[$template][$template . '_api'][$template . '_api_username'] = array(
Line 786: '#default_value' => _invoice_get_variable($template, 'api_username', ''),
C:\xampp\htdocs\d7\sites\all\modules\invoice\invoice_helpers.inc (1 hits)
Line 567: 'api_username' => '',

Comments

pietervogelaar’s picture

Thanks for reporting. The field in the install script was wrong. It must be api_username. It's fixed in Git now.

Pieter

pietervogelaar’s picture

Status: Active » Fixed
pietervogelaar’s picture

Status: Fixed » Closed (fixed)