Commit b3167378 authored by Nejc Ramsak's avatar Nejc Ramsak Committed by Sascha Grossenbacher
Browse files

Issue #3163338 by nejcramsak: AssertionError: Cannot load the "flag" entity with NULL ID

parent b7ac356b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -178,6 +178,9 @@ class FlagViewsRelationship extends RelationshipPluginBase {
   *   The flag being selected by in the view.
   */
  public function getFlag() {
    if (empty($this->options['flag'])) {
      return NULL;
    }
    $flag = $this->flagService->getFlagById($this->options['flag']);
    return $flag;
  }