Project

General

Profile

Actions

Patch #41678

closed

Fix lost backward compatibility about return type of ProjectQuery#results_scope

Added by Nishida Yuya 21 days ago. Updated 17 days ago.

Status:
Closed
Priority:
Normal
Category:
Projects
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

r22811 changed return type of ProjectQuery#results_scope : Project::ActiveRecord_Relation => Array of Project instance

That change is no impact for Redmine end users. But it is broken backward compatibility for some Redmine plugins which uses ProjectQuery#results_scope . This patch fixes it.

In addition, UserQuery#results_scope (same name method) still returns User::ActiveRecord_Relation . And TimeEntryQuery#results_scope ditto.

Related issue: #23954


Files


Related issues

Related to Redmine - Feature #23954: Shows the date of the last activity on Projects administrationClosedMarius BĂLTEANU

Actions
Actions

Also available in: Atom PDF