🇮🇳India @ankitsingh0188

Account created on 23 July 2015, almost 9 years ago
#

Recent comments

🇮🇳India ankitsingh0188

There's already a code in "hook_user_login" which will validate if there's a destination query param and it's value should not be '/user/login' then will skip the redirection.

/**
 * Implements hook_user_login().
 */
function redirect_after_login_user_login($account) {
  $current_route = Drupal::routeMatch()->getRouteName();
  $request = Drupal::request();
  if ($request->getRequestFormat() !== 'html') {
    return;
  }
  $destination = $request->query->get('destination');
  if ($destination && $destination != '/user/login') {
    return;
  }
🇮🇳India ankitsingh0188

@jungle I have updated the patch and using IoC wherever possible.

🇮🇳India ankitsingh0188

What if we get the DatabaseException ?

In that case $e->getMessage() will not work as mentioned Steps to reproducesection.

I think the exception interface should extend the \Throwable with respect to what you're catching is something that is a \Throwable.

🇮🇳India ankitsingh0188

Hi @murilohp

it's better if you add the interdiff between #24 & #29.

🇮🇳India ankitsingh0188

@smustgrave Still needs a change record, which would then need to be added to the patch. -> Please help me with this I have added the tests and refactor the whole interface also, if there's anything else missing please let me know.

🇮🇳India ankitsingh0188

All the patches are same only the difference of the file path as patch was failed to apply earlier. I have included the interdiff in #10

Additionally the patches are failing in #11 but I ran the retest again and it successfully passed.

If you see the error you’ll get to know due to date mismatch test failed just because after 12 midnight day changes.

🇮🇳India ankitsingh0188

Patch #24 🐛 Notice: Undefined index: type in Drupal\Core\Render\Element\Date::processDate() Closed: outdated applied successfully. I have tested the patch and it works for me.

I have attached the screenshot before_patch.png in which I am getting the notice and it disappears after I applied the patch.

Looks good to me! Good to move it to RTBC.

Production build 0.69.0 2024