File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 2424)
2525);
2626?>
27+ <?php
28+ $ selections = array ();
29+ foreach ($ circularNoticeChoice as $ choice ) {
30+ $ selections [$ choice ['id ' ]] = $ choice ['value ' ];
31+ }
32+ ?>
2733
2834<header class="clearfix">
2935<div class="pull-left">
179185));
180186break ;
181187case CircularNoticeComponent::CIRCULAR_NOTICE_CONTENT_REPLY_TYPE_SELECTION :
182- $ selections = array ();
183188$ selected = '' ;
184189foreach ($ circularNoticeChoice as $ choice ) :
185- $ selections [$ choice ['id ' ]] = $ choice ['value ' ];
186190if ($ choice ['id ' ] === $ myAnswer ['CircularNoticeTargetUser ' ]['reply_selection_value ' ]) :
187191$ selected = $ choice ['id ' ];
188192endif ;
197201));
198202break ;
199203case CircularNoticeComponent::CIRCULAR_NOTICE_CONTENT_REPLY_TYPE_MULTIPLE_SELECTION :
200- $ selections = array ();
201204$ selected = explode (CircularNoticeComponent::SELECTION_VALUES_DELIMITER , $ myAnswer ['CircularNoticeTargetUser ' ]['reply_selection_value ' ]);
202205$ selectedValue = array ();
203206foreach ($ circularNoticeChoice as $ choices ) :
204- $ selections [$ choices ['id ' ]] = $ choices ['value ' ];
205207if (in_array ($ choices ['id ' ], $ selected , true )) :
206208$ selectedValue [] = $ choices ['value ' ];
207209endif ;
You can’t perform that action at this time.
0 commit comments