fix: use constrained foreign key for files track_type

This commit is contained in:
jo 2022-06-08 16:31:01 +02:00 committed by Kyle Robbertze
parent bcaea16c19
commit db976881f0
26 changed files with 1233 additions and 113 deletions

View file

@ -144,7 +144,7 @@ class PageLayoutInitPlugin extends Zend_Controller_Plugin_Abstract
}, $track_types), SORT_ASC, $track_types);
foreach ($track_types as $key => $tt) {
$track_type_options[$tt['code']] = $tt['type_name'];
$track_type_options[$tt['id']] = ['name' => $tt['type_name'], 'code' => $tt['code']];
}
$ttarr = json_encode($track_type_options, JSON_FORCE_OBJECT);
$view->headScript()->appendScript('var TRACKTYPES = ' . $ttarr . ';');