From d1e4e2109ffa2a2470b02aa4f72fcce9952c7643 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Thu, 22 Mar 2012 09:35:25 +0000 Subject: [PATCH] Bug fix: support [+] button inside linkedsets.. with constraints SVN:1.2[1913] --- application/ui.extkeywidget.class.inc.php | 2 +- application/ui.linkswidget.class.inc.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/ui.extkeywidget.class.inc.php b/application/ui.extkeywidget.class.inc.php index 1e71ef6d9..5e3d6350f 100644 --- a/application/ui.extkeywidget.class.inc.php +++ b/application/ui.extkeywidget.class.inc.php @@ -134,7 +134,7 @@ class UIExtKeyWidget { $sWizHelper = 'oWizardHelper'.$sFormPrefix; } - $sWizHelperJSON = $sWizHelper.'.ToJSON()'; + $sWizHelperJSON = $sWizHelper.'.UpdateWizardToJSON()'; $sJSSearchMode = 'false'; } if (is_null($oAllowedValues)) diff --git a/application/ui.linkswidget.class.inc.php b/application/ui.linkswidget.class.inc.php index db93f0502..51736ffdf 100644 --- a/application/ui.linkswidget.class.inc.php +++ b/application/ui.linkswidget.class.inc.php @@ -134,7 +134,7 @@ class UILinksWidget $oNewLinkObj = MetaModel::NewObject($this->m_sLinkedClass); $oRemoteObj = MetaModel::GetObject($this->m_sRemoteClass, -$linkObjOrId); $oNewLinkObj->Set($this->m_sExtKeyToRemote, $oRemoteObj); // Setting the extkey with the object alsoo fills the related external fields - $oNewLinkObj->Set($this->m_sExtKeyToMe, $oCurrentObj); // Setting the extkey with the object alsoo fills the related external fields + $oNewLinkObj->Set($this->m_sExtKeyToMe, $oCurrentObj); // Setting the extkey with the object also fills the related external fields $sNameSuffix = "]"; // To make a tabular form $aArgs['prefix'] = $sPrefix; $aArgs['wizHelper'] = "oWizardHelper{$this->m_iInputId}_".(-$linkObjOrId); @@ -176,7 +176,7 @@ EOF $sExtKeyToMeId = $this->MakeID($sPrefix.$this->m_sExtKeyToMe); $aFieldsMap[$this->m_sExtKeyToMe] = $sExtKeyToMeId; - $aRow['form::checkbox'] .= "GetKey()."\">"; + $aRow['form::checkbox'] .= "GetKey()."\">"; $sExtKeyToRemoteId = $this->MakeID($sPrefix.$this->m_sExtKeyToRemote); $aFieldsMap[$this->m_sExtKeyToRemote] = $sExtKeyToRemoteId;