mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
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
This commit is contained in:
12
call.php
12
call.php
@@ -303,7 +303,7 @@ switch($state)
|
||||
|
||||
print "<form action='?' method='post'><div>";
|
||||
print "<p>" . T_("Number to call:") . " {$r['phone']} - {$r['description']}</p>";
|
||||
print "</div><div><input type='hidden' id='contact_phone' name='contact_phone' value='{$r['contact_phone_id']}'/><input type='submit' value='Call' name='submit' id='submit'/></div></form>";
|
||||
print "</div><div><input type='hidden' id='contact_phone' name='contact_phone' value='{$r['contact_phone_id']}'/><input type='submit' value=\"" . T_("Call") . "\" name='submit' id='submit'/></div></form>";
|
||||
}
|
||||
else
|
||||
print "<div>" . 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'") . "</div>";
|
||||
@@ -374,7 +374,7 @@ switch($state)
|
||||
{
|
||||
print "<option value='{$r['contact_phone_id']}'>{$r['phone']} - {$r['description']}</option>";
|
||||
}
|
||||
print "</select></div><div><input type='submit' value='Call' name='submit' id='submit'/></div></form>";
|
||||
print "</select></div><div><input type='submit' value=\"" . T_("Call") . "\" name='submit' id='submit'/></div></form>";
|
||||
}
|
||||
else
|
||||
print "<div>" . 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'") . "</div>";
|
||||
@@ -428,27 +428,27 @@ switch($state)
|
||||
print "<div><a href='?newstate=3'>" . T_("Call Answered") . "</a></div>";
|
||||
print "<form action='?' method='post'>";
|
||||
display_outcomes(0,$call_attempt_id,$case_id);
|
||||
print "<div><input type='submit' value='" . TQ_("Hangup") . "' name='submit' id='submit'/></div></form>";
|
||||
print "<div><input type='submit' value=\"" . T_("Hangup") . "\" name='submit' id='submit'/></div></form>";
|
||||
break;
|
||||
case 2: //ringing
|
||||
print "<div class='status'>" . T_("Ringing") . "</div>";
|
||||
print "<div><a href='?newstate=3'>" . T_("Call Answered") . "</a></div>";
|
||||
print "<form action='?' method='post'>";
|
||||
display_outcomes(0,$call_attempt_id,$case_id);
|
||||
print "<div><input type='submit' value='" . TQ_("Hangup") . "' name='submit' id='submit'/></div></form>";
|
||||
print "<div><input type='submit' value=\"" . T_("Hangup") . "\" name='submit' id='submit'/></div></form>";
|
||||
break;
|
||||
case 3: //answered
|
||||
print "<div class='status'>" . T_("Answered") . "</div>";
|
||||
print "<div><a href='?newstate=2'>" . T_("Not Answered") . "</a></div>";
|
||||
print "<form action='?' method='post'>";
|
||||
display_outcomes(1,$call_attempt_id,$case_id);
|
||||
print "<div><input type='submit' value='" . TQ_("Hangup") . "' name='submit' id='submit'/></div></form>";
|
||||
print "<div><input type='submit' value=\"" . T_("Hangup") . "\" name='submit' id='submit'/></div></form>";
|
||||
break;
|
||||
case 4: //requires coding
|
||||
print "<div class='status'>" . T_("Requires coding") . "</div>";
|
||||
print "<form action='?' method='post'>";
|
||||
display_outcomes(false,$call_attempt_id,$case_id);
|
||||
print "<div><input type='submit' value='" . TQ_("Assign outcome") . "' name='submit' id='submit'/></div></form>";
|
||||
print "<div><input type='submit' value=\"" . T_("Assign outcome") . "\" name='submit' id='submit'/></div></form>";
|
||||
break;
|
||||
case 5: //done -- shouldn't come here as should be coded + done
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user