mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Support of derived classes in "add_remove" edition mode for AttributeLinkSet fields (the search form was not refreshing / loading properly when toggling the class to search for).
SVN:trunk[3822]
This commit is contained in:
@@ -294,7 +294,7 @@ class UILinksWidgetDirect
|
||||
$valuesDef = $oLinksetDef->GetValuesDef();
|
||||
if ($valuesDef === null)
|
||||
{
|
||||
$oFilter = new DBObjectSearch($this->sLinkedClass);
|
||||
$oFilter = new DBObjectSearch($sRemoteClass);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -238,8 +238,12 @@ $(function()
|
||||
}
|
||||
);
|
||||
oParams.operation = 'searchObjectsToAdd2';
|
||||
oParams['class'] = this.options.class_name;
|
||||
oParams.real_class = '';
|
||||
if ((oParams['class'] != undefined) && (oParams['class'] != ''))
|
||||
{
|
||||
oParams.real_class = oParams['class'];
|
||||
}
|
||||
oParams['class'] = this.options.class_name;
|
||||
oParams.att_code = this.options.att_code;
|
||||
oParams.iInputId = this.id;
|
||||
if (this.options.oWizardHelper)
|
||||
|
||||
@@ -228,7 +228,7 @@ function ReloadSearchForm(divId, sClassName, sBaseClass, sContext)
|
||||
{
|
||||
// Restore the previously bound submit handlers
|
||||
var sEventName = 'submit';
|
||||
if (aSubmit[index].namespace != undefined)
|
||||
if ((aSubmit[index].namespace != undefined) && (aSubmit[index].namespace != ''))
|
||||
{
|
||||
sEventName += '.'+aSubmit[index].namespace;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user