/** * saves the new position of a widget on the dashboard. * updates the sorting AND the assigned column * * @return string * @permissions edit */ protected function actionSetDashboardPosition() { $strReturn = ""; $objWidget = new class_module_dashboard_widget($this->getSystemid()); $intNewPos = $this->getParam("listPos"); $objWidget->setStrColumn($this->getParam("listId")); $objWidget->updateObjectToDb(); class_carrier::getInstance()->getObjDB()->flushQueryCache(); $objWidget = new class_module_dashboard_widget($this->getSystemid()); if ($intNewPos != "") { $objWidget->setAbsolutePosition($intNewPos); } $strReturn .= "<message>" . $objWidget->getStrDisplayName() . " - " . $this->getLang("setDashboardPosition") . "</message>"; return $strReturn; }