Account created on 9 October 2015, over 9 years ago
#

Recent comments

Updated version of Options Element D10

I cannot find any other module that can replace the functionality of this module, even Dynamic Options Element. I would love to see this module upgraded to Drupal 10.

Thank you Saschaeggi,

The radio buttons and checkboxes aren't visually updating properly when selected (example from my testing website: https://kindite.org/kindite/web/form/example-style-guide). When I manually replaced var(--gin-color-primary) with any #rrggbb color in /gin/dist/css/base/gin.css, it worked.

input[type="radio"]:checked::before {
  background-color: #007cba;  /* Replaced var(--gin-color-primary) */
}

input[type="checkbox"]:checked::before {
  background-color: #007cba;  /* Replaceed var(--gin-color-primary) */
}

Thanks Rajab for your replay and advice, I increased the maximum execution timeout in the PHP.ini file to 600, and I still got the times out error.

cannot apply patch Issue #3334229: Update existing node entity while changing the ID is not supported when using del  
  ete action (https://www.drupal.org/files/issues/2023-10-24/entity-delete-translation-3334229-7.patch)!  

The patch changes are minimal and logically sound. I tried profiling using the following code to identify which parts of the code causing delays but logging shows nothing

class EntityDeleteAction extends ViewsBulkOperationsActionBase {

  public function execute($entity = NULL) {
    if ($entity instanceof TranslatableInterface && !$entity->isDefaultTranslation()) {
      try {
        $start_time = microtime(true);

        $untranslated_entity = $entity->getUntranslated();
        $untranslated_entity->removeTranslation($entity->language()->getId());
        $untranslated_entity->save();

        $end_time = microtime(true);
        \Drupal::logger('EntityDeleteAction')->notice('Translation removal took @time seconds', ['@time' => $end_time - $start_time]);
      }
      catch (EntityStorageException $e) {
        \Drupal::logger('EntityDeleteAction')->error('EntityStorageException: @message', ['@message' => $e->getMessage()]);
      }
      return $this->t('Delete translations');
    }
    else {
      $entity->delete();
      return $this->t('Entity deleted');
    }
  }

  public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
    $access = $object->access('delete', $account, TRUE);
    return $return_as_object ? $access : $access->isAllowed();
  }
}

That is wonderful, thank you very much!

Production build 0.71.5 2024