From 1f18a175e1568e5707b782c9888017485b579010 Mon Sep 17 00:00:00 2001 From: Pascal Knoth Date: Sat, 16 Sep 2023 13:21:00 +0200 Subject: [PATCH] [admin] fix organization label management --- .../boruta_admin_web/controllers/organization_controller.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/boruta_admin/lib/boruta_admin_web/controllers/organization_controller.ex b/apps/boruta_admin/lib/boruta_admin_web/controllers/organization_controller.ex index 7feb25732..86fec67f9 100644 --- a/apps/boruta_admin/lib/boruta_admin_web/controllers/organization_controller.ex +++ b/apps/boruta_admin/lib/boruta_admin_web/controllers/organization_controller.ex @@ -42,7 +42,7 @@ defmodule BorutaAdminWeb.OrganizationController do def create(conn, %{"organization" => organization_params}) do create_params = %{ name: organization_params["name"], - label: organization_params["name"], + label: organization_params["label"], } with {:ok, organization} <- Admin.create_organization(create_params) do @@ -55,7 +55,7 @@ defmodule BorutaAdminWeb.OrganizationController do def update(conn, %{"id" => id, "organization" => organization_params}) do update_params = %{ name: organization_params["name"], - label: organization_params["name"], + label: organization_params["label"], } with :ok <- ensure_open_for_edition(id, conn),