Commit 5ed874f2 authored by Neil Drumm's avatar Neil Drumm 👋
Browse files

Issue #3272293 by B_man: Fix undefined variable

parent a4f4fe9d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -406,7 +406,7 @@ class PiftCiJob extends Entity {
  public function getTargetTitle() {
    switch ($this->target_type) {
      case PIFT_CI_TYPE_BRANCH:
        return $release->field_release_version[LANGUAGE_NONE][0]['value'];
        return node_load($this->release_nid)->field_release_version[LANGUAGE_NONE][0]['value'];

      case PIFT_CI_TYPE_FILE:
        return drupal_basename($this->getFile()['uri']);