diff --git a/resources/views/business/pages/partials/directory-table.blade.php b/resources/views/business/pages/partials/directory-table.blade.php index cbac72c8..a940b6ec 100644 --- a/resources/views/business/pages/partials/directory-table.blade.php +++ b/resources/views/business/pages/partials/directory-table.blade.php @@ -1793,8 +1793,11 @@ const table = tableScope?.querySelector('.directory-table') || section?.querySelector('.directory-table'); const search = tools.querySelector('[data-directory-search]'); if (!table || !search) return; - const shortNameSort = table.querySelector('[data-inventory-short-name-sort]'); - shortNameSort?.addEventListener('click', () => { + table.addEventListener('click', (event) => { + const shortNameSort = event.target instanceof Element + ? event.target.closest('[data-inventory-short-name-sort]') + : null; + if (!shortNameSort) return; const header = shortNameSort.closest('th'); const ascending = header.getAttribute('aria-sort') !== 'ascending'; const rows = [...table.tBodies[0].querySelectorAll('tr:not(.is-empty)')]; diff --git a/scripts/deploy-from-workstation.ps1 b/scripts/deploy-from-workstation.ps1 index cb2695e6..dbdb6343 100644 --- a/scripts/deploy-from-workstation.ps1 +++ b/scripts/deploy-from-workstation.ps1 @@ -430,7 +430,7 @@ try { } if ($previousSha -and $previousShaExists) { - $migrationChanges = git diff --name-only "$previousSha..$deploySha" -- ` + $migrationChanges = git diff --diff-filter=ACMRTUXB --name-only "$previousSha..$deploySha" -- ` database/migrations ` ':(glob)modules/*/Database/Migrations/*.php' if ($migrationChanges -and -not $AllowMigrations) {