Rename "save" to "createOrUpdate" for the dashlets
This commit is contained in:
@@ -71,7 +71,7 @@ class PMDashlet extends DashletInstance implements DashletInterface {
|
||||
|
||||
public function saveDashletInstance($data) {
|
||||
try {
|
||||
$this->dashletObject->save($data);
|
||||
$this->dashletObject->createOrUpdate($data);
|
||||
}
|
||||
catch (Exception $error) {
|
||||
throw $error;
|
||||
|
||||
@@ -30,7 +30,7 @@ class DashletInstance extends BaseDashletInstance {
|
||||
}
|
||||
}
|
||||
|
||||
public function save($data) {
|
||||
public function createOrUpdate($data) {
|
||||
$connection = Propel::getConnection(DashletInstancePeer::DATABASE_NAME);
|
||||
try {
|
||||
if (!isset($data['DAS_INS_UID'])) {
|
||||
|
||||
Reference in New Issue
Block a user