Index: branches/1.2.x/units/widgets/widget_tp.php =================================================================== diff -u -N -r14250 -r15153 --- branches/1.2.x/units/widgets/widget_tp.php (.../widget_tp.php) (revision 14250) +++ branches/1.2.x/units/widgets/widget_tp.php (.../widget_tp.php) (revision 15153) @@ -18,7 +18,7 @@ { return 'Hello world!'; } - + /** * Returns a link for editing product * @@ -27,20 +27,20 @@ */ function ItemEditLink($params) { - $object =& $this->getObject(); + $object = $this->getObject($params); /* @var $object kDBList */ - + $edit_template = $this->Application->getUnitOption($this->Prefix, 'AdminTemplatePath') . '/' . $this->Application->getUnitOption($this->Prefix, 'AdminTemplatePrefix') . 'edit'; - + $url_params = Array ( 'm_opener' => 'd', $this->Prefix.'_mode' => 't', $this->Prefix.'_event' => 'OnEdit', - $this->Prefix.'_id' => $object->GetID(), + $this->Prefix.'_id' => $object->GetID(), 'pass' => 'all,'.$this->Prefix, 'no_pass_through' => 1, ); - + return $this->Application->HREF($edit_template, '', $url_params); }