Development snapshot for Drupal 7.x. This branch holds the initial port to Drupal 7.x, and will always hold the most up-to-date bug fixed version of this module for Drupal 7.x.
Note: If this is not a fresh install of the module, run update.php and ensure update 6105 is applied -- IF your db field names are dashed, not underscored.
Bugfixes: #598548: Error with defaults on null db fields, changed most fields to be not null #598782: One of the update functions was returning a non-array value causing update.php to complain.
(This should probably be dealt with in core, update.php should probably do a is_array() sanity check before assuming the returned value is in fact an array)
Bug Fixes: #596444: Install file updated to set heavier weight in system table, so module runs later in the process of building the forms on the page. #596624: Added code to exit the form_alter function if the form calling it is not a node_form.
Fixed final database related issue that was keeping this from working.. Should be working fully as expected now. I'm not overly familiar with postgres though, so if someone who is spots any issues with the postgres table alter statements in the update functions in the .install file, please post a patch to the issue queue.
DrupalYedi found two additional database related bugs. The issue with settings not saving still hadn't been fixed in the previous release.
This release fixes that bug, as well as ensuring that all the necessary tables are created upon initial install, rather than having to run update as was the case in the previous release.
Fixed Bug: Settings not being saved due to faulty sql insert query. (When the ability to preset and hide the sell price was added, the SQL insert query wasn't properly updated, causing settings not to be saved.)
Incorporates patches supplied by gtin & pharoz in the comments of the contrib section on ubercart.org, as well as adding the ability to tweak settings for sell price, as requested by LightFromArt in the same comment thread.
Additional code cleanup was also performed to bring the module up to drupal coding standards.