Improvement in the dashlets instances list, validating when a dashlet class doesn't exists

This commit is contained in:
Julio Cesar Laura
2013-02-18 10:21:05 -04:00
parent 2f81b35e63
commit fdc7e01809
2 changed files with 6 additions and 14 deletions

View File

@@ -215,7 +215,7 @@ class Dashboard extends Controller
$data->limit = null;
}
$result->dashletsInstances = $this->pmDashlet->getDashletsInstances( $data->start, $data->limit );
$result->totalDashletsInstances = $this->pmDashlet->getDashletsInstancesQuantity();
$result->totalDashletsInstances = count($result->dashletsInstances);
} catch (Exception $error) {
$result->status = 'ERROR';
$result->message = $error->getMessage();