This is a serious bug, and it cost me a lot of time. I used the most recent version 5.5, and lost a lot of attributes because of this.
The problem was that the code triggered upon editing the AS was not taking into account additinoal Attribute Sets installed on the products.
Here is the quick fix, as requested. I am going to update the package once I make a few more changes to this contribution.
In catalog/admin/products_attributes_sets.php, around line 231, find this:
jjg_db_attributeSets( $arr_ProductsAttributeSetsIDs, $products_ids['products_id'], "update_product" );
and CHANGE it to this:
$arr_NewProductsAttributeSetsIDs = array();
$products_attributes_sets_query_sql = "select products_attributes_sets_id from ".TABLE_PRODUCTS_ATTRIBUTES_SETS_TO_PRODUCTS." where products_
id =".$products_ids['products_id'];
$products_attributes_sets_query = tep_db_query($products_attributes_sets_query_sql);
$newcount = 0;
while($fixed_products_attributes = tep_db_fetch_array($products_attributes_sets_query)) {
$arr_NewProductsAttributeSetsIDs[$newcount] = $fixed_products_attributes['products_attributes_sets_id'];
$newcount++;
}
jjg_db_attributeSets( $arr_NewProductsAttributeSetsIDs, $products_ids['products_id'], "update_product" );
If there are lingering problems after this, let me know. I'll see what I can do before repackaging. Feel free to aim me if you are still having problems and I'll try to help.
LinuxDave