Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Interdire les numéros de téléphone commençant par 0+ #4831

Open
sentry-sentry-incubateur-net bot opened this issue Nov 20, 2024 · 0 comments
Open

Comments

@sentry-sentry-incubateur-net
Copy link

Il s’agit probablement d’une typo lorsque le numéro a été renseigné.

Voir le user 1190924 sur l’instance rdv-solidarités de prod

Sentry Issue: LAPINS-1RR

RangeError: -8..-3 out of range (RangeError)
  app/validators/phone_number_validation.rb:63:in `[]='
    humanized_phone_number&.gsub(" ", "")&.tap { |number| number[-8..-3] = "******" }
  app/validators/phone_number_validation.rb:63:in `block in partially_hidden_phone_number'
    humanized_phone_number&.gsub(" ", "")&.tap { |number| number[-8..-3] = "******" }
  app/validators/phone_number_validation.rb:63:in `partially_hidden_phone_number'
    humanized_phone_number&.gsub(" ", "")&.tap { |number| number[-8..-3] = "******" }
  app/helpers/users_helper.rb:70:in `partially_hidden_reverse_full_name_and_notification_coordinates'
    user.partially_hidden_phone_number,
  app/controllers/agents/users_controller.rb:61:in `block in formatted_users_from_territory'
    text: UsersHelper.partially_hidden_reverse_full_name_and_notification_coordinates(user),
...
(245 additional frame(s) were not displayed)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: 🔖 Ready
Development

No branches or pull requests

0 participants