mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-24 15:52:41 +01:00
17badfacac
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
18 lines
413 B
PHP
18 lines
413 B
PHP
<?php
|
|
|
|
abstract class PhabricatorProjectCustomField
|
|
extends PhabricatorCustomField {
|
|
|
|
public function newStorageObject() {
|
|
return new PhabricatorProjectCustomFieldStorage();
|
|
}
|
|
|
|
protected function newStringIndexStorage() {
|
|
return new PhabricatorProjectCustomFieldStringIndex();
|
|
}
|
|
|
|
protected function newNumericIndexStorage() {
|
|
return new PhabricatorProjectCustomFieldNumericIndex();
|
|
}
|
|
|
|
}
|