From f4bc52a2748996b2426a04aa47830be712c8fb79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20=C3=96ZDEM=C4=B0R?= Date: Sat, 17 Feb 2018 18:57:25 +0300 Subject: [PATCH] Update strike_lookupHelper.js --- aura/strike_lookup/strike_lookupHelper.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aura/strike_lookup/strike_lookupHelper.js b/aura/strike_lookup/strike_lookupHelper.js index 02434da..c8e9209 100644 --- a/aura/strike_lookup/strike_lookupHelper.js +++ b/aura/strike_lookup/strike_lookupHelper.js @@ -243,6 +243,11 @@ License: BSD 3-Clause License*/ if (overrideNewEvent) { addRecordEvent = component.getEvent('strike_evt_addNewRecord'); + + // we need to detect which one is clicked. we can use event parameter. + addRecordEvent.setParams({ + data: component.get('v.object') + }); } else { addRecordEvent = $A.get('e.force:createRecord'); @@ -305,4 +310,4 @@ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/ \ No newline at end of file +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/