File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -788,6 +788,7 @@ protected function assemblePartialDayOptions(FieldsetElement $options): DateTime
788
788
789
789
$ selectedFromTime = $ from ->getValue ();
790
790
foreach ($ timeOptions as $ key => $ value ) {
791
+ unset($ timeOptions [$ key ]); // unset to re-add it at the end of array
791
792
$ timeOptions [$ key ] = sprintf ('%s (%s) ' , $ value , $ this ->translate ('Next Day ' ));
792
793
793
794
if ($ selectedFromTime === $ key ) {
@@ -876,7 +877,9 @@ protected function assembleMultiDayOptions(FieldsetElement $options): DateTime
876
877
$ selectedFromDay = (int ) $ from ->getValue ();
877
878
878
879
for ($ i = 1 ; $ i <= $ selectedFromDay ; $ i ++) {
879
- $ toDays [$ i ] = sprintf ('%s (%s) ' , $ toDays [$ i ], $ this ->translate ('Next week ' ));
880
+ $ day = $ toDays [$ i ];
881
+ unset($ toDays [$ i ]); // unset to re-add it at the end of array
882
+ $ toDays [$ i ] = sprintf ('%s (%s) ' , $ day , $ this ->translate ('Next week ' ));
880
883
}
881
884
882
885
$ options ->addElement ('select ' , 'to_day ' , [
You can’t perform that action at this time.
0 commit comments