Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-ios
Commits
36618a05
Unverified
Commit
36618a05
authored
Sep 30, 2018
by
Zach Knox
Browse files
Apologies to Dunkin' Donuts for having a single quoted string in here making you crash the app
parent
2d8fd574
Changes
1
Hide whitespace changes
Inline
Side-by-side
WhatsOpen/WhatsOpen/Views/Primary Views/FacilitiesListViewController.swift
View file @
36618a05
...
...
@@ -210,8 +210,8 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
@objc
func
toDetailFromURL
(
_
notification
:
Notification
)
{
let
facilityEncoded
=
notification
.
userInfo
!
[
"facility"
]
as?
String
let
facilityDecoded
=
facilityEncoded
?
.
removingPercentEncoding
let
facility
=
realm
.
objects
(
WOPFacilitiesModel
.
self
)[
0
]
.
facilities
.
filter
(
NSPredicate
(
format
:
"facilityName =
'
"
+
(
facilityDecoded
)
!
+
"
'
"
))
.
first
print
(
facilityDecoded
)
let
facility
=
realm
.
objects
(
WOPFacilitiesModel
.
self
)[
0
]
.
facilities
.
filter
(
NSPredicate
(
format
:
"facilityName =
\"
"
+
(
facilityDecoded
)
!
+
"
\"
"
))
.
first
if
(
facility
==
nil
)
{
return
// don't do anything
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment