مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
Correct error message to reflect reality of dependency rules
hopefully fixes #2174
هذا الالتزام موجود في:
@@ -32,7 +32,7 @@ class IPPoolsController < ApplicationController
|
|||||||
@ip_pool.destroy
|
@ip_pool.destroy
|
||||||
redirect_to_with_json :ip_pools, :notice => "IP pool has been removed successfully."
|
redirect_to_with_json :ip_pools, :notice => "IP pool has been removed successfully."
|
||||||
rescue ActiveRecord::DeleteRestrictionError => e
|
rescue ActiveRecord::DeleteRestrictionError => e
|
||||||
redirect_to_with_json [:edit, @ip_pool], :alert => "IP pool cannot be removed because it is still assigned to servers/rules."
|
redirect_to_with_json [:edit, @ip_pool], :alert => "IP pool cannot be removed because it still has associated addresses or servers."
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم