@@ -98,6 +98,7 @@ function save_choices($vars, $id) {
9898
9999 if (!current_user_can ('unfiltered_html ' )) {
100100 $ _POST ['answer ' .$ choice ->id ] = strip_tags ($ _POST ['answer ' .$ choice ->id ]);
101+ $ _POST ['patient_note ' .$ choice ->id ] = strip_tags ($ _POST ['patient_note ' .$ choice ->id ]);
101102 $ _POST ['provider_note ' .$ choice ->id ] = strip_tags ($ _POST ['provider_note ' .$ choice ->id ]);
102103 $ _POST ['assessment ' .$ choice ->id ] = strip_tags ($ _POST ['assessment ' .$ choice ->id ]);
103104 $ _POST ['plan ' .$ choice ->id ] = strip_tags ($ _POST ['plan ' .$ choice ->id ]);
@@ -108,9 +109,10 @@ function save_choices($vars, $id) {
108109
109110 // else update
110111 $ wpdb ->query ($ wpdb ->prepare ("UPDATE " .CHAINED_CHOICES ." SET
111- choice=%s, points=%s, provider_note=%s, assessment=%s, plan=%s, is_correct=%d, goto=%s WHERE id=%d " ,
112- $ _POST ['answer ' .$ choice ->id ], $ _POST ['points ' .$ choice ->id ], $ _POST ['provider_note ' .$ choice ->id ], $ _POST ['assessment ' .$ choice ->id ], $ _POST ['plan ' .$ choice ->id ],
113- intval (@$ _POST ['is_correct ' .$ choice ->id ]), $ _POST ['goto ' .$ choice ->id ], $ choice ->id ));
112+ choice=%s, points=%s, patient_note=%s, provider_note=%s,
113+ assessment=%s, plan=%s, is_correct=%d, goto=%s WHERE id=%d " ,
114+ $ _POST ['answer ' .$ choice ->id ], $ _POST ['points ' .$ choice ->id ], $ _POST ['patient_note ' .$ choice ->id ], $ _POST ['provider_note ' .$ choice ->id ],
115+ $ _POST ['assessment ' .$ choice ->id ], $ _POST ['plan ' .$ choice ->id ], intval (@$ _POST ['is_correct ' .$ choice ->id ]), $ _POST ['goto ' .$ choice ->id ], $ choice ->id ));
114116 }
115117
116118 // add new choices
0 commit comments