In radioactivity_cron() we have the following code:

foreach ($bundles as $bundle) {
  $profile = radioactivity_get_field_profile($entity_type, $bundle, $field_name);

  ...

  $cut_off = $profile->cut_off;

  ...

  $cuts = db_delete($table_name)
    ->condition($energy, $cut_off, '<')
    ->condition("deleted", "0")
    ->execute();

If we have profiles with different cut off values (let's say 5 and 10), then we always delete rows with energy less than 5.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

paulihuhtiniemi created an issue. See original summary.

paulihuhtiniemi’s picture

Here's a patch that adds new condition to DB queries.

Sutharsan’s picture

Status: Needs review » Fixed

Thanks. Now committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.