#985 - Safari crashes on an iPad running iOS 6.0.1
| Identifier | #985 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Safari crashes on an iPad running iOS 6.0.1 |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | General / Uncategorised |
| Description | Go to the admin zone
Select security Select Global Privileges On selection select submission This causes Safari to close and crash. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
diff --git a/sources/global3.php b/sources/support.php
--- a/sources/global3.php
+++ b/sources/global3.php
@@ -1747,7 +1747,7 @@ function browser_matches($code)
$BROWSER_MATCHES_CACHE[$code]=strpos($browser,'android')!==false;
return $BROWSER_MATCHES_CACHE[$code];
case 'ios':
- $BROWSER_MATCHES_CACHE[$code]=strpos($browser,'iphone')!==false;
+ $BROWSER_MATCHES_CACHE[$code]=strpos($browser,'iphone')!==false || strpos($browser,'ipad')!==false;
return $BROWSER_MATCHES_CACHE[$code];
case 'wysiwyg':
if ((get_option('wysiwyg')=='0') || (is_mobile()))
diff --git a/sources/templates.php b/sources/templates.php
--- a/sources/templates.php
+++ b/sources/templates.php
@@ -232,6 +232,8 @@ function form_input_hidden($name,$value)
*/
function form_input_list_group($title,$entries)
{
+ if (browser_matches('ios')) return $entries; // Workaround to iOS bug
+
return do_template('FORM_SCREEN_INPUT_LIST_GROUP',array('_GUID'=>'dx76a2685d0fba5f819ef160b0816d03','TITLE'=>$title,'ENTRIES'=>$entries));
}