ProgrammStatusQuery: Add fallback if ido_version is older than required

resolves #9223
This commit is contained in:
Alexander Fuhr 2015-05-05 16:32:18 +02:00
parent 0e4201a997
commit d1f1f5d7d7
1 changed files with 9 additions and 0 deletions

View File

@ -48,4 +48,13 @@ class ProgramstatusQuery extends IdoQuery
'global_service_event_handler' => 'global_service_event_handler',
)
);
protected function joinBaseTables()
{
parent::joinBaseTables();
if (version_compare($this->getIdoVersion(), '1.11.7', '<')) {
$this->columnMap['programstatus']['endpoint_name'] = '(0)';
}
}
}