From f5acc307a186b693d7698936cac065927edb6408 Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Wed, 27 Nov 2013 12:21:37 +1100 Subject: [PATCH] Fixes lp:1255359 Translation strings with single quotes break some SQL queries Additional fix for submit buttons where the value needs to be double quoted --- admin/displayappointments.php | 2 +- admin/questionnairelist.php | 2 +- admin/quotarow.php | 4 ++-- admin/shiftreport.php | 4 ++-- call.php | 12 ++++++------ call_interface2.php | 6 +++--- email.php | 4 ++-- respondent.php | 2 +- supervisorchat.php | 2 +- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/admin/displayappointments.php b/admin/displayappointments.php index 38b26d47..6f44cb56 100644 --- a/admin/displayappointments.php +++ b/admin/displayappointments.php @@ -209,7 +209,7 @@ if (isset($_GET['appointment_id']) && isset($_GET['case_id'])) array_unshift($ops,array('value'=>0,'description'=>T_("Any operator"),'selected'=>$selected)); display_chooser($ops,"require_operator_id","require_operator_id",false,false,false,false); print ""; - print "
"; + print "
"; print "

"; print "

" . T_("Cancel edit") . "

"; diff --git a/admin/questionnairelist.php b/admin/questionnairelist.php index cc67fefe..46f861cc 100644 --- a/admin/questionnairelist.php +++ b/admin/questionnairelist.php @@ -382,7 +382,7 @@ else if (isset($_GET['delete'])) print "

" . T_("Please confirm you wish to delete the questionnaire") . "

"; print "
"; - print "

"; + print "

"; print "

"; print "
"; } diff --git a/admin/quotarow.php b/admin/quotarow.php index 32e837f2..b4f3fced 100755 --- a/admin/quotarow.php +++ b/admin/quotarow.php @@ -211,11 +211,11 @@ if ($questionnaire_id != false) { print "

" . T_("Copy quotas for this sample to (No error/duplicate checking): "); display_chooser($ss,"copy_sample_import_id","copy_sample_import_id",false,false,false,false); - print "

"; + print "

"; print "

" . T_("Copy quotas for this sample to (No error/duplicate checking) with adjusting: "); display_chooser($ss,"copy_sample_import_id_with_adjustment","copy_sample_import_id_with_adjustment",false,false,false,false); - print "

"; + print "

"; } } diff --git a/admin/shiftreport.php b/admin/shiftreport.php index 6994c868..165a136b 100644 --- a/admin/shiftreport.php +++ b/admin/shiftreport.php @@ -114,7 +114,7 @@ if ($questionnaire_id) print "

"; print "

"; print ""; - print ""; + print ""; print "

"; } else if (isset($_GET['report'])) @@ -160,7 +160,7 @@ if ($questionnaire_id) print "

"; print ""; print ""; - print ""; + print ""; print "

"; } } diff --git a/call.php b/call.php index 4536e610..8c2fe826 100644 --- a/call.php +++ b/call.php @@ -303,7 +303,7 @@ switch($state) print "
"; print "

" . T_("Number to call:") . " {$r['phone']} - {$r['description']}

"; - print "
"; + print "
"; } else print "
" . T_("Your VoIP extension is not enabled. Please close this window and enable VoIP by clicking once on the red button that says 'VoIP Off'") . "
"; @@ -374,7 +374,7 @@ switch($state) { print ""; } - print "
"; + print "
"; } else print "
" . T_("Your VoIP extension is not enabled. Please close this window and enable VoIP by clicking once on the red button that says 'VoIP Off'") . "
"; @@ -428,27 +428,27 @@ switch($state) print "
" . T_("Call Answered") . "
"; print "
"; display_outcomes(0,$call_attempt_id,$case_id); - print "
"; + print "
"; break; case 2: //ringing print "
" . T_("Ringing") . "
"; print "
" . T_("Call Answered") . "
"; print "
"; display_outcomes(0,$call_attempt_id,$case_id); - print "
"; + print "
"; break; case 3: //answered print "
" . T_("Answered") . "
"; print "
" . T_("Not Answered") . "
"; print "
"; display_outcomes(1,$call_attempt_id,$case_id); - print "
"; + print "
"; break; case 4: //requires coding print "
" . T_("Requires coding") . "
"; print "
"; display_outcomes(false,$call_attempt_id,$case_id); - print "
"; + print "
"; break; case 5: //done -- shouldn't come here as should be coded + done default: diff --git a/call_interface2.php b/call_interface2.php index cbf1d015..a58a4197 100644 --- a/call_interface2.php +++ b/call_interface2.php @@ -340,7 +340,7 @@ switch($state) print "
"; print "

" . T_("Number to call:") . " {$r['phone']} - {$r['description']}

"; - print "
"; + print "
"; } else print "
" . T_("Your VoIP extension is not enabled. Please close this window and enable VoIP by clicking once on the red button that says 'VoIP Off'") . "
"; @@ -411,7 +411,7 @@ switch($state) { print ""; } - print "
"; + print "
"; } else print "
" . T_("Your VoIP extension is not enabled. Please close this window and enable VoIP by clicking once on the red button that says 'VoIP Off'") . "
"; @@ -467,7 +467,7 @@ switch($state) print "
" . T_("Requires coding") . "
"; print "
"; display_outcomes(false,$call_attempt_id,$case_id); - print "
"; + print "
"; break; case 5: //done -- shouldn't come here as should be coded + done default: diff --git a/email.php b/email.php index d6e74486..6d159507 100644 --- a/email.php +++ b/email.php @@ -339,9 +339,9 @@ if ($sc == 1) print "
"; if (!isset($_GET['interface2'])) { - print "
"; + print "
"; } - print "
"; + print "
"; } else { diff --git a/respondent.php b/respondent.php index 48c4e7d1..70287003 100644 --- a/respondent.php +++ b/respondent.php @@ -91,7 +91,7 @@ if (isset($_GET['respondent_id']) && $_GET['respondent_id'] == 0) ?>
-
+
"/>
diff --git a/supervisorchat.php b/supervisorchat.php index f58afede..ff26e583 100644 --- a/supervisorchat.php +++ b/supervisorchat.php @@ -87,7 +87,7 @@ if ($chatenabled && operator_chat_enabled($operator_id)) print ""; print "
" . T_("Supervisor not available") . "
"; - print "
"; + print "
"; //table for chat messages print "
" . T_("From") . "" . T_("Message") . "
";