Skip to content

Commit

Permalink
Fixed issue where publish-label value was always reset to the field n…
Browse files Browse the repository at this point in the history
…ame.
  • Loading branch information
Rowan Lewis committed Dec 7, 2010
1 parent 2641334 commit 7f4386d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions symphony/lib/class.field.php
Expand Up @@ -116,15 +116,15 @@ public function __get($name) {
if ($name == 'guid' and !isset($this->guid)) {
$this->guid = Field::createGUID($this);
}

if ($name == "publish-label") {
if ($name == "publish-label" && !isset($this->{'publish-label'})) {
$this->{'publish-label'} = $this->properties->name;
}

if (!isset($this->properties->$name)) {
return null;
}

return $this->properties->$name;
}

Expand Down

0 comments on commit 7f4386d

Please sign in to comment.