From deb9db8c373de17feacf3067aee62163e2d48776 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Mon, 1 Jun 2015 18:30:37 -0400 Subject: [PATCH] Documenting how to keep option value BC - see #14377 --- UPGRADE-2.7.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UPGRADE-2.7.md b/UPGRADE-2.7.md index 42b8349702f34..74c2791c63b08 100644 --- a/UPGRADE-2.7.md +++ b/UPGRADE-2.7.md @@ -144,6 +144,11 @@ Form 'Ignored' => Status::IGNORED, ), 'choices_as_values' => true, + // important if you rely on your option value attribute (e.g. for JavaScript) + // this will keep the same functionality as before + 'choice_value' => function ($choice) { + return $choice; + }, )); ```