From 4bf729679ed65073702718681e82eb1663303f1d Mon Sep 17 00:00:00 2001 From: Jonas L Date: Tue, 18 Apr 2023 09:22:48 +0200 Subject: [PATCH 1/2] fix(legacy): don't print track_type id in show builder table (#2510) --- legacy/application/assets.json | 2 +- legacy/public/js/airtime/library/library.js | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/legacy/application/assets.json b/legacy/application/assets.json index d398ff2f4..75ef87baf 100644 --- a/legacy/application/assets.json +++ b/legacy/application/assets.json @@ -59,7 +59,7 @@ "js/airtime/dashboard/versiontooltip.js": "f267c6ec0205e98f1ffba5f636928f7a", "js/airtime/library/events/library_playlistbuilder.js": "1e0aa11953c7ff243cd2df241cc8a296", "js/airtime/library/events/library_showbuilder.js": "996a5c3008eb17552ee8f891d88c9341", - "js/airtime/library/library.js": "d47ed07f83c68271b2e3bb50d4eb2b8f", + "js/airtime/library/library.js": "6e8af5c3a9a81c1afd60f726ff25601f", "js/airtime/library/plupload.js": "7f754a28ac2d4060aec918c688a74a22", "js/airtime/library/podcast.js": "f4fd354d739e7121ba00162496c295df", "js/airtime/library/publish.js": "851ef4c4caa9e9220acf945c21760189", diff --git a/legacy/public/js/airtime/library/library.js b/legacy/public/js/airtime/library/library.js index 3d9468c61..335b80656 100644 --- a/legacy/public/js/airtime/library/library.js +++ b/legacy/public/js/airtime/library/library.js @@ -1096,6 +1096,18 @@ var AIRTIME = (function (AIRTIME) { }); }) .html(type_button); + } else { + // Not on dashboard (show builder) + if ( + aData.track_type_id == null || + aData.track_type_id == undefined || + aData.track_type_id == 0 + ) { + var track_type_code = ""; + } else { + var track_type_code = TRACKTYPES[aData.track_type_id].code; + } + $(nRow).find("td.library_track_type").html(track_type_code); } // add audio preview image/button From d9fbb231b623ef8b222dd7ed24c5a7f66771fb19 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Wed, 19 Apr 2023 17:15:15 +0200 Subject: [PATCH 2/2] fix(legacy): remove composer superuser warning (#2515) - Disable plugins or script when running composer - Export COMPOSER_ALLOW_SUPERUSER=true to suppress the warning - Simplify makefile to build legacy files --- legacy/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/legacy/Makefile b/legacy/Makefile index 189c9f371..868c09737 100644 --- a/legacy/Makefile +++ b/legacy/Makefile @@ -12,8 +12,16 @@ locale-update: locale-build: $(MAKE) -C locale clean build +export COMPOSER_ALLOW_SUPERUSER = true +COMPOSER_INSTALL = composer install \ + --no-interaction \ + --no-progress \ + --no-plugins \ + --no-scripts \ + --optimize-autoloader + vendor: - composer install --no-progress --no-interaction $(COMPOSER_ARGS) + $(COMPOSER_INSTALL) .PHONY: test test: vendor @@ -28,8 +36,8 @@ lint: tools $(TOOLS)/bin/php-cs-fixer fix --verbose --dry-run --diff .PHONY: build -build: - COMPOSER_ARGS="--no-dev --ignore-platform-reqs" $(MAKE) +build: locale-build + $(COMPOSER_INSTALL) --no-dev --ignore-platform-reqs propel-gen: vendor cd build && \