mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 21:32:43 +01:00
Fix PhabricatorProjectCustomFields to use storage correctly.
Summary: Prevents infinite recursion when trying to save custom fields on projects. Test Plan: Add a custom field (that is a class, not one configured in the UI) to a project, and try to save it. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Projects: #phabricator Maniphest Tasks: T5606 Differential Revision: https://secure.phabricator.com/D9908
This commit is contained in:
parent
b7a970598d
commit
17badfacac
1 changed files with 11 additions and 0 deletions
|
@ -3,5 +3,16 @@
|
|||
abstract class PhabricatorProjectCustomField
|
||||
extends PhabricatorCustomField {
|
||||
|
||||
public function newStorageObject() {
|
||||
return new PhabricatorProjectCustomFieldStorage();
|
||||
}
|
||||
|
||||
protected function newStringIndexStorage() {
|
||||
return new PhabricatorProjectCustomFieldStringIndex();
|
||||
}
|
||||
|
||||
protected function newNumericIndexStorage() {
|
||||
return new PhabricatorProjectCustomFieldNumericIndex();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue