codeforcroatia / imamopravoznati-theme

Frontend theme for Croatian Alaveteli site
http://imamopravoznati.org
MIT License
1 stars 1 forks source link

Bug in displaying user profile - PIN number (from "imamopravoznati-theme-0.39.1.6" branch) #131

Open schlos opened 2 years ago

schlos commented 2 years ago

Describe the bug

It seems that Alaveteli expected PIN number to be a Date, but I can't see any validation, and db migration has set field into string. Requirement that was being tested is:

An ActionView::Template::Error occurred in user#show:

  Object must be a Date, DateTime or Time object. "12345678901" given.
  lib/themes/imamopravoznati-theme/lib/views/user/_show_user_info.html.erb:20:in `_lib_themes_imamopravoznati_theme_lib_views_user__show_user_info_html_erb___2648259228887061587_47183182467660'

-------------------------------
Request:
-------------------------------

  * URL        : https://imamopravoznati.org/user/testing
  * HTTP Method: GET
  * IP address : xxxxxxxxx
  * Parameters : {"controller"=>"user", "action"=>"show", "url_name"=>"testing"}
  * Timestamp  : 2022-01-21 00:12:48 +0100
  * Server : imamopravoznati.org
    * Rails root : /data/www/imamopravoznati.org/alaveteli
  * Process: 50576

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context