Added changelog; fixed issue where lookups threw exceptions on null search and subtitle fields
This commit is contained in:
Родитель
895e598763
Коммит
81006630cd
|
@ -0,0 +1,11 @@
|
|||
# Strike by Appiphony
|
||||
|
||||
### Release 0.1.1 — March 1, 2017
|
||||
|
||||
* **Lookup**: Fixed an issue where records with `null` values for the `search` and `subtitle` fields caused lookups to throw an exception
|
||||
|
||||
---
|
||||
|
||||
### Release 0.1.0 — February 24, 2017
|
||||
* Initial release
|
||||
* Open sourced: <a href="https://github.com/appiphony/Strike-Components" target="_blank">https://github.com/appiphony/Strike-Components</a>
|
|
@ -1,6 +1,6 @@
|
|||
# Strike by Appiphony
|
||||
### Work smarter (not harder) with Salesforce Lightning Components
|
||||
Current release: 0.1.0
|
||||
Current release: 0.1.1
|
||||
See it in action here: <a href="http://www.lightningstrike.io" target="_blank">http://www.lightningstrike.io</a>
|
||||
|
||||
---
|
||||
|
|
|
@ -171,6 +171,10 @@ public with sharing class strike_lookupController {
|
|||
|
||||
label = ((Map<String, Object>)label).get(fieldName);
|
||||
|
||||
if (label == null) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (fieldMap.containsKey(fieldName + 'Id')) {
|
||||
fieldName = fieldName + 'Id';
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче