Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed $this->getValue('article_id')

  • Loading branch information...
commit 63187cf55bed0401d7174c27777b31d0fa26ec70 1 parent 518e404
@gharlan gharlan authored
View
15 redaxo/src/addons/structure/plugins/content/lib/article_content.php
@@ -48,21 +48,6 @@ public function setArticleId($article_id)
return false;
}
- protected function correctValue($value)
- {
- // bc
- if ($this->viasql) {
- return parent::correctValue($value);
- }
-
- if ($value == 'category_id') {
- if ($this->getValue('startpage') != 1) $value = 're_id';
- else $value = 'id';
- }
-
- return $value;
- }
-
protected function _getValue($value)
{
// bc
View
10 redaxo/src/addons/structure/plugins/content/lib/article_content_base.php
@@ -156,11 +156,11 @@ public function setEval($value)
protected function correctValue($value)
{
if ($value == 'category_id') {
- if ($this->getValue('startpage') != 1) $value = 're_id';
- else $value = 'id';
- }
- // über SQL muss article_id -> id heissen
- elseif ($value == 'article_id') {
+ if ($this->getValue('startpage') != 1)
+ $value = 're_id';
+ else
+ $value = 'id';
+ } elseif ($value == 'article_id') {
$value = 'id';
}
Please sign in to comment.
Something went wrong with that request. Please try again.