mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
fix: made admin status store, related to lock feature
This commit is contained in:
parent
3985513407
commit
dad4790ccc
8 changed files with 25 additions and 87 deletions
|
@ -53,8 +53,9 @@ module Admin
|
|||
dp = ignore_empty_statuses
|
||||
@domain.is_admin = true
|
||||
@domain.admin_status_update dp[:statuses]
|
||||
|
||||
if @domain.update(dp)
|
||||
@domain.admin_store_statuses_history = @domain.statuses
|
||||
@domain.save
|
||||
flash[:notice] = I18n.t('domain_updated')
|
||||
redirect_to [:admin, @domain]
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue