Skip to content

Commit e36ee40

Browse files
authored
Merge pull request #456 from jjrom/develop
Typo in function call
2 parents b917ccb + 1d00fe3 commit e36ee40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/resto/core/RestoConstants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class RestoConstants
2020
// [IMPORTANT] Starting resto 7.x, default routes are defined in RestoRouter class
2121

2222
// resto version
23-
const VERSION = '9.0.0-RC19';
23+
const VERSION = '9.0.0-RC20';
2424

2525
/* ============================================================
2626
* NEVER EVER TOUCH THESE VALUES

app/resto/core/dbfunctions/FeaturesFunctions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ public function removeFeature($feature)
408408
/*
409409
* Update statistics counter for featureId - i.e. remove 1 per catalogs containing this feature
410410
*/
411-
$catalogsUpdated = (new CatalogsFunctions($this->dbDriver))->updateFeatureCatalogsCounters($feature->id, -1);
411+
$catalogsUpdated = (new CatalogsFunctions($this->dbDriver))->updateFeatureCatalogsCounters($feature->id, $feature->collectio->id, -1);
412412

413413
/*
414414
* Next remove
@@ -513,7 +513,7 @@ public function updateFeature($feature, $collection, $newFeatureArray)
513513
* 2. Then delete resto.catalog_feature rows
514514
* 3. Then add resto.catalog_feature rows
515515
*/
516-
(new CatalogsFunctions($this->dbDriver))->updateFeatureCatalogsCounters($feature->id, -1);
516+
(new CatalogsFunctions($this->dbDriver))->updateFeatureCatalogsCounters($feature->id, $feature->collectio->id, -1);
517517

518518
$this->dbDriver->pQuery(
519519
'DELETE FROM ' . $this->dbDriver->targetSchema . '.catalog_feature WHERE featureid=$1', array(

0 commit comments

Comments
 (0)