From 49e134d5fee6777c8bb30e74f5d525734d1842f4 Mon Sep 17 00:00:00 2001 From: Micha Date: Sun, 1 Feb 2026 20:59:28 +0100 Subject: [PATCH] locations working in locations table --- localization/strings.pot | 6 ++++++ migrations/0255.sql | 1 + views/locations.blade.php | 5 +---- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/localization/strings.pot b/localization/strings.pot index bdb68303..2df59b47 100644 --- a/localization/strings.pot +++ b/localization/strings.pot @@ -1171,6 +1171,12 @@ msgstr "" msgid "Parent product" msgstr "" +msgid "Parent location" +msgstr "" + +msgid "Select a parent location to create a hierarchy (e.g., Building > Floor > Room)" +msgstr "" + msgid "Not possible because this product is already used as a parent product in another product" msgstr "" diff --git a/migrations/0255.sql b/migrations/0255.sql index 7f767bd5..f0a95a30 100644 --- a/migrations/0255.sql +++ b/migrations/0255.sql @@ -21,6 +21,7 @@ AS ( LIMIT 100 -- Safety limit to prevent infinite loops ) SELECT + location_id AS id, location_id, ancestor_location_id, level diff --git a/views/locations.blade.php b/views/locations.blade.php index e9a809a4..3ef23caf 100644 --- a/views/locations.blade.php +++ b/views/locations.blade.php @@ -118,10 +118,7 @@ - @if($location->location_depth > 0) - {{ str_repeat('— ', $location->location_depth) }} - @endif - {{ $location->name }} + {{ $location->location_path }} @if($location->parent_location_id)