Added changelog; fixed issue where lookups threw exceptions on null search and subtitle fields

This commit is contained in:
Trent Childers 2017-03-01 16:26:51 -06:00
Родитель 895e598763
Коммит 81006630cd
3 изменённых файлов: 16 добавлений и 1 удалений

11
CHANGELOG.md Normal file
Просмотреть файл

@ -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';
}