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) {
|
public function saveDashletInstance($data) {
|
||||||
try {
|
try {
|
||||||
$this->dashletObject->save($data);
|
$this->dashletObject->createOrUpdate($data);
|
||||||
}
|
}
|
||||||
catch (Exception $error) {
|
catch (Exception $error) {
|
||||||
throw $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);
|
$connection = Propel::getConnection(DashletInstancePeer::DATABASE_NAME);
|
||||||
try {
|
try {
|
||||||
if (!isset($data['DAS_INS_UID'])) {
|
if (!isset($data['DAS_INS_UID'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user