Commit e1e56d19 authored by Marc Ducobu's avatar Marc Ducobu
Browse files

Display code in menu choice

parent ebb23257
......@@ -73,11 +73,11 @@ class CustomFieldICPC2Code implements CustomFieldInterface
$locale = $this->requestStack->getCurrentRequest()->getLocale();
foreach ($ICPC2Chapters as $chap) {
$chap_locale = $chap->getNameByLocale($locale, $this->defaultLocale);
$chap_locale = $chap->getNameByLocale($locale, $this->defaultLocale).' ('.$chap->getSlug().')';
$codesChoice[$chap_locale] = array();
foreach ($chap->getCodes() as $c) {
$codesChoice[$chap_locale][$c->getCode()] = $c->getNameByLocale($locale,$this->defaultLocale);
$codesChoice[$chap_locale][$c->getCode()] = $c->getCode().' - '.$c->getNameByLocale($locale,$this->defaultLocale);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment