From d7d8b58d73a4b24fe73f8f41d22f0624dc92f001 Mon Sep 17 00:00:00 2001 From: Jim Mason Date: Sat, 2 Mar 2024 16:57:05 +0000 Subject: [PATCH] fixed duration in track form --- ui/Editor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/Editor.php b/ui/Editor.php index 3ef17997..e7d22149 100644 --- a/ui/Editor.php +++ b/ui/Editor.php @@ -1346,13 +1346,13 @@ private function trackForm() { $tracks = Engine::api(ILibrary::class)->search($isCollection?ILibrary::COLL_KEY:ILibrary::TRACK_KEY, 0, 2000, $_REQUEST["seltag"]); foreach($tracks as $row) { $this->emitHidden("track".$row["seq"], $row["track"]); - $this->emitHidden("trackDuration".$row["seq"], $row["url"]); - $this->emitHidden("trackUrl".$row["seq"], $row["url"]); $_POST["track".$row["seq"]] = $row["track"]; $duration = $row["duration"]; if($duration) $duration = preg_replace("/^0(0:0?)?/", "", $duration); + $this->emitHidden("trackDuration".$row["seq"], $duration); $_POST["trackDuration".$row["seq"]] = $duration; + $this->emitHidden("trackUrl".$row["seq"], $row["url"]); $_POST["trackUrl".$row["seq"]] = $row["url"]; if($isCollection) { $this->emitHidden("artist" . $row["seq"], $row["artist"]);