going strait to the point, the issue is at line 157: http://drupalcode.org/project/ubercart.git/blob/HEAD:/uc_product_kit/uc_...

the question is:
for a site with huge amounts of products such query is not suitable
can't afford to fetch all existing product ids just to populate an unusable dropdown list

having thousands of products makes impossible to even read anything at the dropdown

BUT the BUG is: there is no way to change such behavior, no hook, no nothing, no way to opt-out or "alter" such behavior to something saner

function uc_product_kit_form(&$node, $form_state) {
  // ...

  // Query the database and loop through the results.
  $products = db_query("SELECT nid, title FROM {node} WHERE type IN (:types) ORDER BY title, nid", array(':types' => $product_types))->fetchAllKeyed();

  // ...

  $form['base']['products'] = array(
    '#type' => 'select',
    '#multiple' => TRUE,
    '#required' => TRUE,
    '#title' => t('Products'),
    '#options' => $products,
    '#default_value' => array_keys($node->products),
  );

Comments

tr’s picture

Priority: Major » Normal
Status: Active » Closed (duplicate)

There's already an issue open for this, #1167840: Add Ajax functionality to product kit node add/edit form. Please contribute to that issue if you would like to help get this resolved.