When calling something like:

$backend = node_load(3060)->versioncontrol_project['repo']->getBackend();
$conditions = [
  'branches' => 389286,
  'committer_date' => [
    'operator' => '>',
    'values' => 1494661108,
  ],
];
$backend->loadEntities('operation', [], $conditions);

currently this notice happens:

Undefined property: VersioncontrolGitOperation::$operator controllers.inc:384

CommentFileSizeAuthor
#2 2909486.patch910 bytesdrumm
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drumm created an issue. See original summary.

drumm’s picture

Status: Active » Needs review
FileSize
910 bytes

This patch bails and does not try using the cache when these conditions are seen.

  • marvil07 committed 3990073 on 7.x-1.x
    Issue #2909486: Adds test coverage for cache controller using values/...
  • marvil07 committed 5600bd2 on 7.x-1.x authored by drumm
    Issue #2909486 by drumm: Do not try using the cache with values/operator...

marvil07 credited marvil07.

marvil07’s picture

Status: Needs review » Fixed

Thanks for the patch, I have just added test coverage for this case, and verified that the patch solves the problem.
Added now to 7.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.